What news there were for the photos framework
Generated on 8/2/2024
1 search
At WWDC 2024, Apple introduced several updates and new features for the Photos framework, particularly through the Photokit and the new Locked Camera Capture framework. Here are the key highlights:
-
Locked Camera Capture Framework:
- New Framework: Introduced in iOS 18, this framework allows for a seamless camera capture experience directly from the lock screen on both iPhone and iPad (Build a great Lock Screen camera capture experience).
- Photo Library Access: Extensions can add captured photos and videos to the 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. Full access is granted when the device is unlocked and proper permissions are in place (Build a great Lock Screen camera capture experience).
- Granular Permissions: Photokit supports granular levels of photo library access, such as write-only access and limited library support, allowing users to select specific photos for access (Build a great Lock Screen camera capture experience).
-
Spatial Media Support:
- Filtering Spatial Assets: Photokit now supports filtering on spatial assets, allowing developers to specify spatial media in the matching parameter to filter the user's library for spatial photos and videos. This can be done programmatically by setting spatial media as the
PHAssetMediaSubtype
in the fetch predicate (Build compelling spatial photo and video experiences).
- Filtering Spatial Assets: Photokit now supports filtering on spatial assets, allowing developers to specify spatial media in the matching parameter to filter the user's library for spatial photos and videos. This can be done programmatically by setting spatial media as the
-
HDR Image Support:
- Enhanced HDR Capabilities: The Photos app has been updated to utilize new HDR technologies, rendering HDR images using the full display headroom on iOS 18 and macOS 15. This update also extends to other system apps like Messages, Quick Look, and Preview (Use HDR for dynamic image experiences in your app).
Relevant Sessions
- Build a great Lock Screen camera capture experience
- Build compelling spatial photo and video experiences
- Use HDR for dynamic image experiences in your app
These updates provide developers with more tools and flexibility to create rich photo and video experiences within their apps, leveraging the latest capabilities of iOS 18 and macOS 15.
Use HDR for dynamic image experiences in your app
Discover how to read and write HDR images and process HDR content in your app. Explore the new supported HDR image formats and advanced methods for displaying HDR images. Find out how HDR content can coexist with your user interface — and what to watch out for when adding HDR image support to your app.
Enhanced suggestions for your journaling app
Find out how your journaling app can display journaling suggestions with richer content from the system. Explore new types of available content like state of mind data, reflection prompts, and support for third-party media content and motion-based activities.
Build compelling spatial photo and video experiences
Learn how to adopt spatial photos and videos in your apps. Explore the different types of stereoscopic media and find out how to capture spatial videos in your iOS app on iPhone 15 Pro. Discover the various ways to detect and present spatial media, including the new QuickLook Preview Application API in visionOS. And take a deep dive into the metadata and stereo concepts that make a photo or video spatial.
Build a great Lock Screen camera capture experience
Find out how the LockedCameraCapture API can help you bring your capture application’s most useful information directly to the Lock Screen. Examine the API’s features and functionality, learn how to get started creating a capture extension, and find out how that extension behaves when the device is locked.