Post

Replies

Boosts

Views

Activity

Unable to capture Live Photo with camera using UIImagePickerController
I have been unable to capture Live Photos using UIImagePickerController. I can capture still photos and even video (which is not my scenario but I checked just to make sure), but the camera does not capture live photos. The documentation suggests it should (source): To obtain the motion and sound content of a live photo for display (using the PHLivePhotoView class), include the kUTTypeImage and kUTTypeLivePhoto identifiers in the allowed media types when configuring an image picker controller. When the user picks or captures a Live Photo, the editingInfo dictionary contains the livePhoto key, with a PHLivePhoto representation of the photo as the corresponding value. I've set up my controller: let camera = UIImagePickerController() camera.sourceType = .camera camera.mediaTypes = [UTType.image.identifier, UTType.livePhoto.identifier] camera.delegate = context.coordinator In the delegate I check for the Live Photo: func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { if let live = info[.livePhoto] as? PHLivePhoto { // handle live photo } else if let takenImage = info[.originalImage] as? UIImage, let metadata = info[.mediaMetadata] as? [AnyHashable:Any] { // handle still photo } } But I never get the Live Photo. I've tried adding NSMicrophoneUsageDescription to the info.plist thinking it needs permissions for the microphone, but that did not help. Of course, I've added the NSCameraUsageDescription to give camera permissions. Has anyone successfully captured Live Photos using UIImagePickerController?
1
1
2.1k
May ’23
UICloudSharingController no longer allows "add people"
I am building a CloudKit app that uses UICloudSharingController to create and manage the shared content. iOS 15 seems to have removed the "Add People" option from the dialog when using the controller to view an existing share. I've tested on iOS 14.5, and the "App People" option is there and works fine. The same code on iOS 15 shows the UICloudSharingController but the "Add People" option is not there. I'm showing the controller using this code:                     let controller = UICloudSharingController(share: share, container: self.container)                     controller.delegate = self                     self.present(controller, animated: true) The CKShare is properly created and saved. The dialog shows the users that were added during the initial creation of the share. I reported this (FB9495523) during the original iOS 15 betas, but have heard nothing. I've tested on iOS 15 beta 1 and beta 2, both with the same issue. Has anyone else seen this? And if so, any suggestions on how to work around it? My users are not happy. (I realize that I probably can create my own sharing UI to work around this, but I don't want to have to do that!).
9
1
1.8k
Nov ’21
Unable to capture Live Photo with camera using UIImagePickerController
I have been unable to capture Live Photos using UIImagePickerController. I can capture still photos and even video (which is not my scenario but I checked just to make sure), but the camera does not capture live photos. The documentation suggests it should (source): To obtain the motion and sound content of a live photo for display (using the PHLivePhotoView class), include the kUTTypeImage and kUTTypeLivePhoto identifiers in the allowed media types when configuring an image picker controller. When the user picks or captures a Live Photo, the editingInfo dictionary contains the livePhoto key, with a PHLivePhoto representation of the photo as the corresponding value. I've set up my controller: let camera = UIImagePickerController() camera.sourceType = .camera camera.mediaTypes = [UTType.image.identifier, UTType.livePhoto.identifier] camera.delegate = context.coordinator In the delegate I check for the Live Photo: func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { if let live = info[.livePhoto] as? PHLivePhoto { // handle live photo } else if let takenImage = info[.originalImage] as? UIImage, let metadata = info[.mediaMetadata] as? [AnyHashable:Any] { // handle still photo } } But I never get the Live Photo. I've tried adding NSMicrophoneUsageDescription to the info.plist thinking it needs permissions for the microphone, but that did not help. Of course, I've added the NSCameraUsageDescription to give camera permissions. Has anyone successfully captured Live Photos using UIImagePickerController?
Replies
1
Boosts
1
Views
2.1k
Activity
May ’23
UICloudSharingController no longer allows "add people"
I am building a CloudKit app that uses UICloudSharingController to create and manage the shared content. iOS 15 seems to have removed the "Add People" option from the dialog when using the controller to view an existing share. I've tested on iOS 14.5, and the "App People" option is there and works fine. The same code on iOS 15 shows the UICloudSharingController but the "Add People" option is not there. I'm showing the controller using this code:                     let controller = UICloudSharingController(share: share, container: self.container)                     controller.delegate = self                     self.present(controller, animated: true) The CKShare is properly created and saved. The dialog shows the users that were added during the initial creation of the share. I reported this (FB9495523) during the original iOS 15 betas, but have heard nothing. I've tested on iOS 15 beta 1 and beta 2, both with the same issue. Has anyone else seen this? And if so, any suggestions on how to work around it? My users are not happy. (I realize that I probably can create my own sharing UI to work around this, but I don't want to have to do that!).
Replies
9
Boosts
1
Views
1.8k
Activity
Nov ’21