Clean up ahead of PR.

pull/1/head
Matthew Chen 7 years ago
parent b9bd21e73f
commit 03877867f4

@ -442,7 +442,7 @@ public class ShareViewController: UINavigationController, ShareViewDelegate, SAE
}
private func utiTypeForItem(itemProvider: NSItemProvider) -> String? {
// Special case URLs. Most shares will confirm to kUTTypeURL, but
// Special case URLs. Many shares (e.g. pdfs) will register kUTTypeURL, but
// URLs will have kUTTypeURL as their only registered UTI type.
if itemProvider.registeredTypeIdentifiers.count == 1 {
if let firstUtiType = itemProvider.registeredTypeIdentifiers.first {

Loading…
Cancel
Save