diff --git a/Sources/BetterSafariView/Shared/UIView+viewController.swift b/Sources/BetterSafariView/Shared/UIView+viewController.swift deleted file mode 100644 index 620f185..0000000 --- a/Sources/BetterSafariView/Shared/UIView+viewController.swift +++ /dev/null @@ -1,21 +0,0 @@ -#if os(iOS) - -import UIKit - -extension UIResponder { - - /// The receiver’s view controller, or `nil` if it has none. - /// - /// This property is `nil` if the view has not yet been added to a view controller. - var viewController: UIViewController? { - if let nextResponder = self.next as? UIViewController { - return nextResponder - } else if let nextResponder = self.next { - return nextResponder.viewController - } else { - return nil - } - } -} - -#endif