From 2c452b08e82db3f5f0d4e95ec7761da497c250db Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 4 Jun 2019 13:37:31 -0400 Subject: [PATCH] Fix deprecation warning --- Tusker/Screens/Compose/ComposeViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tusker/Screens/Compose/ComposeViewController.swift b/Tusker/Screens/Compose/ComposeViewController.swift index 783adaceb3..2b7b4fb2be 100644 --- a/Tusker/Screens/Compose/ComposeViewController.swift +++ b/Tusker/Screens/Compose/ComposeViewController.swift @@ -416,7 +416,7 @@ class ComposeViewController: UIViewController { options.deliveryMode = .highQualityFormat options.resizeMode = .none 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() } let mimeType = UTTypeCopyPreferredTagWithClass(dataUTI as CFString, kUTTagClassMIMEType)!.takeRetainedValue() as String