Releases: dayaki/Glimpse
Releases · dayaki/Glimpse
Release list
Glimpse 1.0.0
First release.
A SwiftUI-native async image loader in ~700 lines of code with zero dependencies — a minimal alternative to Kingfisher and Nuke.
What's in it
GlimpseImage, a drop-in replacement forAsyncImage: same three initializers, sameAsyncImagePhase, plus a.placeholder { }modifier.- Decoded-image memory cache keyed by URL and display size; original bytes cached on disk with a size budget and TTL.
- Downsampling at decode time via ImageIO, quantized to 64px buckets, never upscaling.
- Request coalescing with refcounted cancellation — duplicate loads share one download, and it survives until the last subscriber goes away.
- Prefetch API for scroll-ahead, and cancel-on-disappear through SwiftUI's own
.tasklifecycle.
Requirements
iOS 17+, macOS 14+, tvOS 17+, watchOS 10+, visionOS 1+ · Swift 6.0+
.package(url: "https://github.com/dayaki/Glimpse.git", from: "1.0.0")