Progressive concurrent image downloader for SwiftUI, with neat API and performant LRU mem/disk cache.
Just import SwiftWebImage
and set url
for SwiftImage
:
SwiftImage<Image>(imageUrl)
Framework will automatically load Image with @ObservedObject
data once download completes.
Trailing config
closure of SwiftImage
is used for underlying ImageView configuration:
SwiftImage(imageUrl) { imageView in
imageView
.resizable()
.aspectRatio(1, contentMode: .fit)
}
Simply add https://github.com/geekaurora/SwiftWebImage.git
to your Swift Packages
via project settings.
link |
Stars: 44 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics