Skip to content

Releases: crelies/Media

New APIs & Improved SwiftUI views

04 May 21:45
84acbe8
Compare
Choose a tag to compare

🎁 New APIs

  • New additional lazy containers for fetching the media assets only on demand
    -- LazyAlbum(s)
    -- LazyAudio(s)
    -- LazyLivePhoto(s)
    -- Media.LazyPhotos
    -- LazyPhoto
    -- LazyVideo(s)

  • Media: Get and request the permission to access the camera (Media.currentCameraPermission, Media.requestCameraPermission(_))

  • Video: Get a preview image for a given point in time (video.previewImage(at:preferredTimescale:_))

  • Photo+SwiftUI: Get a photo view with a desired size (photo.view(targetSize:imageView:))

🎉 Improved SwiftUI views

  • Refactored views for better performance and to get rid of some bugs

  • Media.browser, LivePhoto.browser, Photo.browser & Video.browser now use the new PHPicker with multi selection support under the hood on iOS 14 or macOS 11

  • Camera.view, Media.browser, LivePhoto.camera, LivePhoto.browser, Photo.camera, Photo.browser, Video.camera & Video.browser stop throwing and instead show a SwiftUI.Text if an error occurs during initialization. You can specify a ViewBuilder to show a custom error view.

🚀 Improvements

  • Album, Audio, LivePhoto, Photo & Video now conform to Equatable and Hashable

  • Fixed a threading issue

  • Improvements related to the authorization status API changes from Apple

ℹ️ More

  • Added an example project with some usage examples (was previously managed in a separate git repository)

New property wrapper & improvements

13 Feb 22:00
2950a2e
Compare
Choose a tag to compare

Features

  • Added new FetchAllAssets property wrapper

Improvements

  • Added macOS support to the Photo.save API

Bugfixes

  • Album: Fetched assets are now correctly limited to the specific album

⚡ Swift 5.3 & latest OS support

06 Jan 19:18
d1eb8f2
Compare
Choose a tag to compare

Improvements

Migration to Swift 5.3

SwiftUI

  • Implemented PHPicker view

Bugfixes

  • Bugfixes & refactoring related to latest OS updates

Fixed SwiftUI camera views

05 Apr 21:15
Compare
Choose a tag to compare

Bugfixes

  • Fixed a critical bug where no result was returned when capturing or selecting a photo