Skip to content

Commit db4b340

Browse files
committed
removed obsolete popover code & layout error message
* obsolete popover code - obsolete since changing from `UIDocumentMenuViewController` to `UIDocumentPickerViewController` * auto layout error within document picker has been fixed in subsequent iOS releases.
1 parent 7ea8475 commit db4b340

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

Pod/Classes/NADocumentPicker.swift

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,8 @@ open class NADocumentPicker : NSObject {
6666
private func showDocumentPicker(from view: UIView, parentViewController: UIViewController, documentTypes: [String]) -> Future<URL, AnyError> {
6767
let documentPicker = UIDocumentPickerViewController(documentTypes:documentTypes, in: UIDocumentPickerMode.open)
6868
documentPicker.delegate = self
69-
if let popoverPresentationController = documentPicker.popoverPresentationController {
70-
popoverPresentationController.sourceView = view
71-
popoverPresentationController.sourceRect = view.bounds
72-
}
73-
74-
parentViewController.present(documentPicker, animated: true, completion: {
75-
print("\n</layout-errors>\nSee: http://openradar.appspot.com/19385063\n")
76-
})
7769

70+
parentViewController.present(documentPicker, animated: true)
7871
return promise.future
7972
}
8073

0 commit comments

Comments
 (0)