diff options
Diffstat (limited to 'foray/UIViewController+Extensions.swift')
-rw-r--r-- | foray/UIViewController+Extensions.swift | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/foray/UIViewController+Extensions.swift b/foray/UIViewController+Extensions.swift deleted file mode 100644 index ee2c436..0000000 --- a/foray/UIViewController+Extensions.swift +++ /dev/null @@ -1,23 +0,0 @@ -// -// UIViewController+Extensions.swift -// foray -// -// Created by Nicholas Tay on 24/3/2022. -// - -import Foundation -import UIKit - -protocol HasCustomView { - associatedtype CustomView: UIView -} - -extension HasCustomView where Self: UIViewController { - internal var customView: CustomView { - guard let view = self.view as? CustomView else { - fatalError("Could not cast custom view") - } - - return view - } -} |