New in iOS 14, we can now drag a photo up in the Photos app and add a caption.
Is it possible to access this caption via PhotoKit or any other framework?
I don't see a field for it on PHAsset. I've also tried the following snippet to see if I can see them stored on the image:
let assets = PHAsset.fetchAssets(with: .image, options: nil)
				assets.enumerateObjects { (asset, index, stop) in
						let options = PHContentEditingInputRequestOptions()
						options.isNetworkAccessAllowed = true
						asset.requestContentEditingInput(with: options) { (input, properties) in
								guard let input = input,
											let fullSizeImageURL = input.fullSizeImageURL,
											let imageSource = CGImageSourceCreateWithURL(fullSizeImageURL as CFURL, nil),
											let imageProperties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, nil) else {
										return
								}
								
								dump(imageProperties)
						}
				}
Post
Replies
Boosts
Views
Activity
Will it be possible to create drivers on iPad for Human Interface Devices such as an external stylus?