Swiftpack.co -  sbertix/NukeImage as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A SwiftUI Nuke-backed Image-like View
.package(url: "https://github.com/sbertix/NukeImage.git", from: "2.0.2")


Travis (.com) GitHub tag (latest by date) GitHub Platform

NukeImage was a simple SwiftUI implementation for Nuke.
Simply pass your URL to NukeImage and you're ready to go.

Use the official FetchImage instead.


Swift Package Manager (Xcode 11 and above)

  1. Select File/Swift Packages/Add Package Dependency… from the menu.
  2. Paste https://github.com/sbertix/NukeImage.git.
  3. Follow the steps.

NukeImage depends on Nuke.


import NukeImage
import SwiftUI

struct YourView: View {
    let url: URL  // your content url.
    var body: some View {
        NukeImage(url)                // or pass an `ImageRequest` or `URLRquest` for finer control.
          .placeholder(Color(.systemGroupedBackground)) // optional.
          .resizable()                // fully supported.  optional.
          .renderingMode(.original)   // fully supported.  optional.

In NukeImage 2.0, performances are greatly improved when passing Image, NSImage or UIImage placeholders.


NukeImage is licensed under the MIT license.
Check out LICENSE for more info.


Stars: 3
Last commit: 1 year ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.


Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API