Swift package · v0.1.0
KLLazyGallery
Load media progressively while keeping gallery state predictable.
A gallery coordination layer for lazy image and video loading, cancellation, dismissal, player release, and UIKit photo-browser integration.
Functions
- Incremental image and video loading
- Cancellation and request identity
- Deterministic dismissal and player release
- UIKit photo-browser adapter
Not included
It coordinates gallery state and media requests. Asset storage, caching policy, network transport, and application presentation remain outside the package.
Install with SwiftPM
Package.swiftSwift
.package(url: "https://github.com/KoenLee1023/KLLazyGallery.git", from: "0.1.0")Usage
Integration exampleSwift
let coordinator = KLLazyGalleryLoadCoordinator(loader: loader)
await coordinator.load(item, priority: .visible)API documentation
Open the complete API documentation.KLLazyGalleryLoadCoordinatorCoordinates progressive media loading and cancellation for the visible gallery state.
KLLazyGalleryItemDescribes an image or video item without owning application storage.
KLLazyGalleryJXAdapterBridges gallery state into the JXPhotoBrowser presentation boundary.
Demo apps
Gallery Playground
Scroll through media while observing lazy loading and cancellation.
Dismissal Lab
Exercise dismissal, player release, and presentation transitions.