Swiftpack.co - Package - sbertix/NukeImage

NukeImage

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

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

Installation

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.

Usage

import NukeImage
import SwiftUI

struct YourView: View {
    let url: URL  // your content url.
    
    var body: some View {
        NukeImage(url: url,           // or use `.init(_: placeholder:)` 
                                      // passing an `ImageRequest` for finer control.
                  placeholder: Color(.systemGroupedBackground) /* optional */)
          .resizable()                // fully supported.
          .renderingMode(.original)   // fully supported.
    }
}                      

License

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

Github

link
Stars: 1
Help us keep the lights on

Dependencies

Used By

Total: 0