I see that PHPickerFilter has constants for images, videos, and livePhotos. Is there any way to show only Slo-mo videos in the new photo picker? Or for that matter, any of the types listed in the Photos app under Media Types? (But I'm specifically interested in Slo-mo videos for the app I'm working on.)
Post
Replies
Boosts
Views
Activity
The sample code - https://developer.apple.com/documentation/photokit/selecting_photos_and_videos_in_ios for PHPhotoPicker doesn't include an example of how to load a video. I got it working by using the PHPickerResult’s assetIdentifier and PHAsset.fetchAssets(withLocalIdentifiers:options:), but that requires additional photo library permissions. How can I load a movie directly from the PHPickerResult?
I'm building an iOS/iPadOS app for iOS 18+ using the new RealityView in SwiftUI. (I may add visionOS, but I'm not focusing on it right now.) The 3D scene I'm rendering is fairly simple (just a few dozen vertices and a couple of textures), and I'd like to render it at 120fps on ProMotion devices if possible. I tried setting CADisableMinimumFrameDurationOnPhone to true in the info plist, but it had no effect. The frame rate in the GPU Report in Xcode stays capped at 60fps, and the gauge even tops out at 60.
My question is kind of the opposite of this post, which asks how to limit the frame rate of a RealityView.
I'm on Xcode 16 beta 5 on macOS Sonoma and iOS 18.0 beta 6 on my iPhone 15 Pro.