Created
January 8, 2022 04:27
-
-
Save showcove/c37201b5f63a4369ec20f32a6f054bde to your computer and use it in GitHub Desktop.
StructVSClass - SubViewController2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SubViewController2.swift | |
// ClassInStructLifeCycle | |
// | |
// Created by jay on 2022/01/08. | |
// | |
import UIKit | |
class SubViewController2: UIViewController { | |
let model: Model | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
makeView() | |
} | |
init(model: Model) { | |
self.model = model | |
super.init(nibName: nil, bundle: nil) | |
} | |
// MARK: - Below is not important!!!! | |
func makeView() { | |
self.title = String(describing: Self.self) | |
self.view.backgroundColor = .white | |
} | |
required init?(coder: NSCoder) { | |
fatalError("init(coder:) has not been implemented") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment