Swiftpack.co -  geekaurora/CZWebImage as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
geekaurora/CZWebImage
Elegant progressive concurrent image downloading framework, with neat APIs, LRU mem/disk cache.
.package(url: "https://github.com/geekaurora/CZWebImage.git", from: "3.6.0")

CZWebImage

Swift Version Carthage compatible License Platform

Elegant progressive concurrent image downloading framework, with neat API and performant LRU mem/disk cache.

How To Use

Objective-C:

#import <CZWebImage/CZWebImage.h>
...
[imageView cz_setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"]
             placeholderImage:[UIImage imageNamed:@"placeholder.png"]];
Swift:

import CZWebImage

// Liner to fetch imageUrl
feedImageView.cz_setImage(with: imageUrl,
                          placeholderImage: UIImage(named: "placeholder.png"))   
                          
// Set cropSize for image - will get done in background thread automatically after download
feedImageView.cz_setImage(with: imageUrl,
                          placeholderImage: UIImage(named: "placeholder.png"),
                          cropSize: cropSize)                          

Work Flow

Debugging

Set shouldObserveOperations of CZWebImageConstants to true to observe downloading tasks.

Instagram Demo - Github

Implemented on top of CZWebImage

GitHub

link
Stars: 2
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Release 1.2.1 on master
3 years ago

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