Can I do the same with the image?
PHAssetChangeRequest.creationRequestForAsset(from: UIImage(data: bytes)
Can I do the same with the image?
PHAssetChangeRequest.creationRequestForAsset(from: UIImage(data: bytes)
Yes, you can use PHAssetCreationRequest
and the following API
https://developer.apple.com/documentation/photokit/phassetcreationrequest/1622684-addresource
I do not want to save it as a temporary file.