NukeImage was a simple SwiftUI implementation for Nuke.
Simply pass your URL
to NukeImage
and you're ready to go.
File
/Swift Packages
/Add Package Dependency…
from the menu.https://github.com/sbertix/NukeImage.git
.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.
link |
Stars: 3 |
Last commit: 3 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics