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.

Platforms
iOS 17+ · macOS 14+
Toolchain
Swift 6.0+
License
MIT
Dependencies
None

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)
KLLazyGalleryLoadCoordinator

Coordinates progressive media loading and cancellation for the visible gallery state.

KLLazyGalleryItem

Describes an image or video item without owning application storage.

KLLazyGalleryJXAdapter

Bridges gallery state into the JXPhotoBrowser presentation boundary.

Demo apps

Dismissal Lab

Exercise dismissal, player release, and presentation transitions.