Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geekaurora/SwiftWebImage
🚀SwiftUI Image downloader with performant LRU mem/disk cache.
https://github.com/geekaurora/SwiftWebImage
Last synced: 10 days ago
JSON representation
🚀SwiftUI Image downloader with performant LRU mem/disk cache.
- Host: GitHub
- URL: https://github.com/geekaurora/SwiftWebImage
- Owner: geekaurora
- License: mit
- Created: 2019-07-25T14:25:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T02:15:49.000Z (6 months ago)
- Last Synced: 2024-08-01T15:03:39.680Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 20.3 MB
- Stars: 45
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-swift - SwiftWebImage - 🚀SwiftUI Image downloader with performant LRU mem/disk cache. (Libs / Images)
- fucking-about-SwiftUI - SwiftWebImage
- awesome-swift - SwiftWebImage - SwiftUI Image downloader with performant LRU mem/disk cache. ` 📝 3 months ago ` (Images [🔝](#readme))
- awesome-swift - SwiftWebImage - 🚀SwiftUI Image downloader with performant LRU mem/disk cache. (Libs / Images)
README
# SwiftWebImage
![Swift Version](https://img.shields.io/badge/swift-5.0-orange.svg)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![License](https://img.shields.io/cocoapods/l/CZUtils.svg?style=flat)](http://cocoapods.org/pods/CZUtils)
[![Platform](https://img.shields.io/cocoapods/p/CZUtils.svg?style=flat)](http://cocoapods.org/pods/CZUtils)Progressive concurrent image downloader for SwiftUI, with neat API and performant LRU mem/disk cache.
### Simple UsageJust `import SwiftWebImage` and set `url` for `SwiftImage`:
```swift
SwiftImage(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:```swift
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