Swiftpack.co - geekaurora/SwiftWebImage as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by geekaurora.
geekaurora/SwiftWebImage 3.3.6
🚀SwiftUI Image downloader with performant LRU mem/disk cache.
⭐️ 44
🕓 3 years ago
iOS
.package(url: "https://github.com/geekaurora/SwiftWebImage.git", from: "3.3.6")

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

GitHub

link
Stars: 44
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics