Skip to content

Instantly share code, notes, and snippets.

protocol Bindable {
associatedtype ViewModel
var viewModel: ViewModel! { get set }
func bindToViewModel()
}
protocol PoppableVC {
associatedtype Parent
@AvatarHurden
AvatarHurden / AppDelegate.swift
Last active August 13, 2018 02:37
Coordinator with navigation and service functions
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
let window = UIWindow(frame: UIScreen.main.bounds)
self.window = window