UNPKG

@appshuttle.io/turing

Version:
76 lines (55 loc) 2.29 kB
class ViewControllerTemplates { constructor() { /* VIEWCONTROLLER STRUCTURE START */ // VIEWCONTROLLER Structure Defaults // VIEWCONTROLLER Structure Holders this.APPNAME_HOLDER = '%appName%' this.FILE_NAME_HOLDER = '%filenameholder%' this.CREATOR_NAME_HOLDER = '%creatorName%' this.COPYRIGHT_YEAR_HOLDER = '%year%' this.ORGANIZATION_NAME_HOLDER = '%organizationName%' this.DATE_HOLDER = '%dateHolder%' this.IB_ACTIONS_HOLDER = '%ibActions%' this.getViewControllerStructure = function() { return ` // // ` + this.FILE_NAME_HOLDER + `.swift // ` + this.APPNAME_HOLDER + ` // // Created by ` + this.CREATOR_NAME_HOLDER + ` on ` + this.DATE_HOLDER + `. // Copyright © ` + this.COPYRIGHT_YEAR_HOLDER + ` ` + this.ORGANIZATION_NAME_HOLDER + `. All rights reserved. // import UIKit class ` + this.FILE_NAME_HOLDER + `: UIViewController { // MARK: ViewController Parameters/Variables // MARK: ViewController IBActions ` + this.IB_ACTIONS_HOLDER + ` } // MARK: ViewController LifeCycle Methods extension ` + this.FILE_NAME_HOLDER + ` { override func viewDidLoad() { super.viewDidLoad() } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) } override func viewDidDisappear(_ animated: Bool) { super.viewDidDisappear(animated) } } ` } /* VIEWCONTROLLER STRUCTURE END */ } } module.exports = ViewControllerTemplates