photo library

Asked on 12/09/2024

1 search

Apple's WWDC 2024 sessions provided several insights into working with the photo library using Photokit. Here are some key points:

  1. Photo Library Access with Photokit:

    • Photokit allows extensions to add captured photos and videos to a user's photo library even when the device is locked. However, only photos and videos captured during the current session are accessible when the device is locked. When unlocked, all photos and videos that the extension has permission to access can be read. Photokit supports granular levels of access, such as write-only access and limited library support, allowing users to select specific photos for access by the extension. (Build a great Lock Screen camera capture experience)
  2. Spatial Photo and Video Experiences:

    • Photokit now supports filtering on spatial assets, allowing developers to specify spatial media in the matching parameter to filter the user's library to show only spatial photos and videos. This can be done programmatically without user input by setting spatial media as the PH asset media subtype in the fetch predicate. (Build compelling spatial photo and video experiences)

These sessions highlight the capabilities and flexibility of Photokit in managing photo library access and enhancing user experiences with spatial media.