Skip to content

🚀SwiftUI Image downloader with performant LRU mem/disk cache.

License

Notifications You must be signed in to change notification settings

geekaurora/SwiftWebImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftWebImage

Swift Version Carthage compatible License Platform

Progressive concurrent image downloader for SwiftUI, with neat API and performant LRU mem/disk cache.

Simple Usage

Just import SwiftWebImage and set url for SwiftImage:

SwiftImage<Image>(imageUrl)                   

Framework will automatically load Image with @ObservedObject data once download completes.

How to config ImageView?

Trailing config closure of SwiftImage is used for underlying ImageView configuration:

SwiftImage(imageUrl) { imageView in
  imageView
    .resizable()
    .aspectRatio(1, contentMode: .fit)
}

How to import library?

Simply add https://github.com/geekaurora/SwiftWebImage.git to your Swift Packages via project settings.

Demo

About

🚀SwiftUI Image downloader with performant LRU mem/disk cache.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages