Fix deprecation warning
This commit is contained in:
parent
03f89c752e
commit
2c452b08e8
|
@ -416,7 +416,7 @@ class ComposeViewController: UIViewController {
|
||||||
options.deliveryMode = .highQualityFormat
|
options.deliveryMode = .highQualityFormat
|
||||||
options.resizeMode = .none
|
options.resizeMode = .none
|
||||||
options.isNetworkAccessAllowed = true
|
options.isNetworkAccessAllowed = true
|
||||||
PHImageManager.default().requestImageData(for: asset, options: options) { (data, dataUTI, orientation, info) in
|
PHImageManager.default().requestImageDataAndOrientation(for: asset, options: options) { (data, dataUTI, orientation, info) in
|
||||||
guard let data = data, let dataUTI = dataUTI else { fatalError() }
|
guard let data = data, let dataUTI = dataUTI else { fatalError() }
|
||||||
|
|
||||||
let mimeType = UTTypeCopyPreferredTagWithClass(dataUTI as CFString, kUTTagClassMIMEType)!.takeRetainedValue() as String
|
let mimeType = UTTypeCopyPreferredTagWithClass(dataUTI as CFString, kUTTagClassMIMEType)!.takeRetainedValue() as String
|
||||||
|
|
Loading…
Reference in New Issue