Swift iOS: -How to exclude .livePhotos from inclusion in the PHFetchOptions?
问题 Following @matt's code when using the UIImagePicker , I can prevent the user from picking a .livePhoto once an image is choosen using: let asset = info[UIImagePickerControllerPHAsset] as? PHAsset if asset?.playbackStyle == .livePhoto { // alert user this photo isn't a possibility } When using the PHFetchOptions how can I prevent them from being shown instead of filtering them out inside the enumerateObjects callback? fileprivate func fetchPhotos() { let fetchOptions = PHFetchOptions()