git404hub

what is nuke fr?

kean/nuke — explained in plain English

Analysis updated 2026-06-24

8,584SwiftAudience · developerComplexity · 2/5LicenseSetup · easy

tl;dr

A Swift library that handles downloading, caching, and displaying images in iOS, macOS, and other Apple platform apps, replaces manual download and cache code with a few lines.

vibe map

mindmap
  root((nuke))
    What it does
      Image loading
      Memory cache
      Disk cache
    Tech Stack
      Swift
      SwiftUI
      UIKit
    Features
      Progressive loading
      Prefetching
      Video clips
    Platforms
      iOS macOS
      tvOS watchOS
      visionOS

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Load and display remote images in a SwiftUI app using a single LazyImage view with one line of code

VIBE 2

Cache downloaded images on disk so your iOS app loads faster on repeat visits

VIBE 3

Prefetch images before a user scrolls to them to eliminate loading delays in lists

VIBE 4

Show a low-quality image preview while the full version is still downloading

what's the stack?

SwiftSwiftUIUIKitSwift Package Manager

how it stacks up fr

kean/nukeapple/containerizationdaltoniam/starscream
Stars8,5848,5418,637
LanguageSwiftSwiftSwift
Setup difficultyeasyhardeasy
Complexity2/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

Requires Swift 6.2 and Xcode 26, older versions are available if you need lower platform targets.

Use freely for any purpose including commercial apps, as long as you include the copyright notice.

in plain english

Nuke is a Swift library for loading and displaying images in Apple platform apps: iOS, macOS, tvOS, watchOS, and visionOS. When you build an app that shows images fetched from the internet, you need to handle downloading, caching, and displaying them efficiently. Nuke takes care of all of that so you do not have to write it yourself. The library stores images in two places: in memory for quick access while the app is running, and on disk so they load faster the next time the user opens the app. It can also prefetch images before the user scrolls to them, so the app feels more responsive. For images that support it, Nuke can show a low-quality preview while the full image is still downloading, which is called progressive loading. It supports common image formats including JPEG, WebP, GIF, and HEIF. Nuke ships as four separate modules you can mix and match. The core module handles the image loading pipeline. A UI module provides ready-made components for both SwiftUI and UIKit, including a LazyImage view that you drop into your SwiftUI layout with a single line of code. There is also an extensions module for UIKit's image views and a video module for short video clips. The README shows that the library compiles in under 2 seconds and has an automated test suite twice the size of the codebase itself. It has been in development since 2015. The current version requires Swift 6.2 and Xcode 26, targeting iOS 15 and equivalent releases on other Apple platforms. Older versions with lower requirements are also available. Installation is done through Swift Package Manager. Nuke is released under the MIT license.

prompts (copy fr)

prompt 1
I'm building a SwiftUI app and need to load images from a URL. Show me how to use Nuke's LazyImage view, set a placeholder, and configure disk caching.
prompt 2
Help me set up Nuke in a UIKit iOS app with a UITableView so images prefetch before the user scrolls to each row.
prompt 3
I want to display animated GIFs in my iOS app using Nuke. Walk me through adding the right module and the code to render them in a SwiftUI view.
prompt 4
Show me how to add the Nuke Swift package in Xcode via Swift Package Manager and display a remote image with a loading spinner placeholder.

Frequently asked questions

what is nuke fr?

A Swift library that handles downloading, caching, and displaying images in iOS, macOS, and other Apple platform apps, replaces manual download and cache code with a few lines.

What language is nuke written in?

Mainly Swift. The stack also includes Swift, SwiftUI, UIKit.

What license does nuke use?

Use freely for any purpose including commercial apps, as long as you include the copyright notice.

How hard is nuke to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is nuke for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.