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: about 2 months 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T05:53:06.000Z (about 3 years ago)
- Last Synced: 2024-01-09T10:42:10.986Z (5 months ago)
- Language: Swift
- Homepage:
- Size: 20.3 MB
- Stars: 44
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-swift - SwiftWebImage - 🚀SwiftUI Image downloader with performant LRU mem/disk cache. (Libs / Images)
- awesome-swift4 - SwiftWebImage - 🚀SwiftUI Image downloader with performant LRU mem/disk cache. (Libs / Images)
- awesome-swiftxx - SwiftWebImage - 🚀SwiftUI Image downloader with performant LRU mem/disk cache. (Libs / Images)
- awesome-swiftqq - SwiftWebImage - 🚀SwiftUI Image downloader with performant LRU mem/disk cache. (Libs / Images)
- awesome-swift - SwiftWebImage - 🚀SwiftUI Image downloader with performant LRU mem/disk cache. (Libs / Images)
- awesome-swifty - SwiftWebImage - 🚀SwiftUI Image downloader with performant LRU mem/disk cache. (Libs / Images)
- fucking-awesome-swift - SwiftWebImage - 🚀SwiftUI Image downloader with performant LRU mem/disk cache. (Libs / Images)
- awesome-swifte - 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))
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
![]()