我有这行代码
let urlRecordingPath = URL(string: videoPath)
,并希望将其旋转180度,然后再保存到类似资产中
PHPhotoLibrary.shared().performChanges({
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: urlRecordingPath!)
}, completionHandler: {
saved, error in
if saved {
// File saved
}
})