aboutsummaryrefslogtreecommitdiff
path: root/foray/UIViewController+Extensions.swift
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2022-03-24 16:32:23 +1100
committerNicholas Tay <nick@windblume.net>2022-03-24 16:32:23 +1100
commit1b292bc251b3dbef532dacad9705bd197ac4227b (patch)
tree1635ed0cc70922f6337d010b42e2119258877114 /foray/UIViewController+Extensions.swift
parent716724df0fee78a8976d5255096e000af29daad1 (diff)
downloadforayios-1b292bc251b3dbef532dacad9705bd197ac4227b.tar.gz
forayios-1b292bc251b3dbef532dacad9705bd197ac4227b.tar.bz2
forayios-1b292bc251b3dbef532dacad9705bd197ac4227b.zip
Reorganise into folder groups
In preparation for presenters to come in largely, lots of files starting to go everywhere...
Diffstat (limited to 'foray/UIViewController+Extensions.swift')
-rw-r--r--foray/UIViewController+Extensions.swift23
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
- }
-}