Sha256: 161531b80cff75ea481b3fa40feea3a5bc0998a680bd0e9cb5e476f95fa55e1b
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 KB
Contents
//___FILEHEADER___ import UIKit protocol ___VARIABLE_productName___Displayable: class { } class ___FILEBASENAMEASIDENTIFIER___: UIViewController, ___VARIABLE_productName___Displayable { // MARK: - Properties var router: (___VARIABLE_productName___Routable & ___VARIABLE_productName___DataPassing)! var interactor: ___VARIABLE_productName___Interactable! private let moduleConfiguration: ModuleConfiguration? // MARK: - Initializers init(_ moduleConfiguration: ModuleConfiguration! = ModuleConfiguration.currentConfiguration) { self.moduleConfiguration = moduleConfiguration super.init(nibName: nil, bundle: nil) setupVIP() } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } // MARK: - Setup VIP private func setupVIP() { let interactor = ___VARIABLE_productName___Interactor(moduleConfiguration) let presenter = ___VARIABLE_productName___Presenter(moduleConfiguration) let router = ___VARIABLE_productName___Router() presenter.viewController = self interactor.presenter = presenter router.dataStore = interactor router.viewController = self self.interactor = interactor self.router = router } // MARK: - Lifecycle override func viewDidLoad() { super.viewDidLoad() } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blue_printer-0.1.5 | Clean Swift VIP.xctemplate/___FILEBASENAME___ViewController.swift |