Skip to content

v0.5.0 — Slow-motion + album asset listing

Choose a tag to compare

@SteliyanH SteliyanH released this 03 May 16:03
· 12 commits to main since this release

KadrPhotos v0.5.0. Pure additive — Kadr floor stays at 0.9.2.

Highlights

  • PhotosClipResolver.slowMotion(asset:options:progress:) — async resolver for high-frame-rate slow-motion videos. Always overrides videoExportPreset to AVAssetExportPresetPassthrough so the original 60 / 120 / 240 fps source survives the export. Consumers chain clip.speed(0.25) for the classic 8× slo-mo at 30 fps playback.
  • PhotosClipResolver.videoFrameRate(of:) + slowMotionSpeed(originalFrameRate:playbackFrameRate:) — async frame-rate read + pure speed-multiplier helper for choosing the playback ramp programmatically.
  • PhotosClipError.notSlowMotion — new error case thrown by both slow-mo entry points for assets without videoHighFrameRate subtype.
  • PhotosClipResolver.assets(in: PHAssetCollection, mediaType:) + smartAlbum(_:) — programmatic album listing. Lets editor apps open on the user's Slo-mo, Favorites, or any other smart album without scoping the picker UI (Apple's PHPickerConfiguration doesn't expose album scoping in any current SDK).

Compatibility

KadrPhotos 0.5.0 requires Kadr ≥ 0.9.2 (unchanged from v0.1).

11 new tests across the cycle. Cycle considered feature-complete pending kadr v1.0.

See CHANGELOG for the full entry.