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

Related tags

Image SwiftWebImage
Overview

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

You might also like...
A simple, performant, and lightweight SVG parser
A simple, performant, and lightweight SVG parser

Key Features Parsing performance that meets or beats other popular SVG Frameworks A simple architecture, optimized for extension, flexibility and deve

XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage
XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage

XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage. An illustration is shown below: Features Plays m

A lightweight generic cache for iOS written in Swift with extra love for images.
A lightweight generic cache for iOS written in Swift with extra love for images.

Haneke is a lightweight generic cache for iOS and tvOS written in Swift 4. It's designed to be super-simple to use. Here's how you would initalize a J

CachedAsyncImage is the simplest way to add cache to your AsyncImage.

SwiftUI CachedAsyncImage 🗃️ CachedAsyncImage is AsyncImage, but with cache capabilities. Usage CachedAsyncImage has the exact same API and behavior a

📷 A composable image editor using Core Image and Metal.
📷 A composable image editor using Core Image and Metal.

Brightroom - Composable image editor - building your own UI Classic Image Editor PhotosCrop Face detection Masking component 🎉 v2.0.0-alpha now open!

An image download extension of the image view written in Swift for iOS, tvOS and macOS.
An image download extension of the image view written in Swift for iOS, tvOS and macOS.

Moa, an image downloader written in Swift for iOS, tvOS and macOS Moa is an image download library written in Swift. It allows to download and show an

📷 A composable image editor using Core Image and Metal.
📷 A composable image editor using Core Image and Metal.

Brightroom - Composable image editor - building your own UI Classic Image Editor PhotosCrop Face detection Masking component 🎉 v2.0.0-alpha now open!

AYImageKit is a Swift Library for Async Image Downloading, Show Name's Initials and Can View image in Separate Screen.
AYImageKit is a Swift Library for Async Image Downloading, Show Name's Initials and Can View image in Separate Screen.

AYImageKit AYImageKit is a Swift Library for Async Image Downloading. Features Async Image Downloading. Can Show Text Initials. Can have Custom Styles

A complete Mac App: drag an image file to the top section and the bottom section will show you the text of any QRCodes in the image.

QRDecode A complete Mac App: drag an image file to the top section and the bottom section will show you the text of any QRCodes in the image. QRDecode

Comments
  • Can't import using swift package manager

    Can't import using swift package manager

    I'm trying to import this library, but this is what I get

    The package dependency graph can not be resolved, possibly because of these requirements:
    
    https://github.com/geekaurora/SwiftWebImage.git — 3.3.2
    
    Screen Shot 2020-05-26 at 16 48 15
    opened by orelzion 3
  • SwiftWebImage doesn't work with SwiftPackageManager - should drag SwiftWebImage framework to your project

    SwiftWebImage doesn't work with SwiftPackageManager - should drag SwiftWebImage framework to your project

    Underlying CZImageCache of SwiftWebImage doesn't work with SwiftPackageManager

    Workaround

    • Should drag SwiftWebImage framework to your project.

    Reason about

    • The root cause seems related with DispatchQueue of CZMutexLock with SwiftPackageManager, will investigate further.
    bug 
    opened by geekaurora 1
  • Error fetching dependency

    Error fetching dependency

    Hi,

    When I added it to the project, it returned the error message:

    Error while fetching remote repositoryhttps://github.com/geekaurora/CZHttpFileCache.git: The remote repository could not be accessed. Make sure a valid repository exists at the specified location and that the correct credentials have been supplied.

    It seems to me like the repository mentioned does not exist any more. Is there any steps I can take to resolve it?

    Thanks

    opened by freegyp 0
Owner
Cheng Zhang
Software Engineer at Google
Cheng Zhang
Asynchronous image downloader with cache support as a UIImageView category

This library provides an async image downloader with cache support. For convenience, we added categories for UI elements like UIImageView, UIButton, M

null 24.4k Jan 5, 2023
DGImageView - Asynchronous image downloader with cache. Supports gif too

DGImageView Installation Usage DGImageView Asynchronous image downloader with cache. Supports gif, memory cache, disk cache features. Installation Xco

donggyu 1 Jan 1, 2022
Twitter Image Pipeline is a robust and performant image loading and caching framework for iOS clients

Twitter Image Pipeline (a.k.a. TIP) Background The Twitter Image Pipeline is a streamlined framework for fetching and storing images in an application

Twitter 1.8k Dec 17, 2022
AsyncImage before iOS 15. Lightweight, pure SwiftUI Image view, that displays an image downloaded from URL, with auxiliary views and local cache.

URLImage URLImage is a SwiftUI view that displays an image downloaded from provided URL. URLImage manages downloading remote image and caching it loca

Dmytro Anokhin 1k Jan 4, 2023
Multi image downloader with priority in Swift

Vulcan Multi image downloader with priority in Swift Features Very light Multi image download with priority Caching images Pure Swift Composable image

Jin Sasaki 294 Aug 29, 2022
Lightweight and customisable async image loading in SwiftUI. Supports on-disk storage, placeholders and more!

Asyncrounously download and display images in Swift UI. Supports progress indicators, placeholders and image transitions. RemoteImageView Asyncrounous

Callum Trounce 192 Dec 7, 2022
An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and  Watch.

KFSwiftImageLoader KFSwiftImageLoader is an extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memor

Kiavash Faisali 343 Oct 29, 2022
A thread safe, performant, feature rich image fetcher

PINRemoteImage Fast, non-deadlocking parallel image downloader and cache for iOS PINRemoteImageManager is an image downloading, processing and caching

Pinterest 4k Jan 9, 2023
Rounded async imageview downloader lightly cached and written in Swift

PASImageView ============ **Rounded async imageview downloader lightly cached and written in Swift 3 ** Objective-C version here Snapshot Usage //XIB

Pierre Abi-aad 173 Nov 6, 2022
SocialDownloaderApp - An exact copy of Social Downloader App by Sulton Handaya For Pelorous

SocialDownloaderApp It is a copy of Social Downloader App by Sulton Handaya For

prashant-humney 0 Jan 12, 2022