Skip to content

Instantly share code, notes, and snippets.

@showcove
Created January 8, 2022 04:27
Show Gist options
  • Save showcove/c37201b5f63a4369ec20f32a6f054bde to your computer and use it in GitHub Desktop.
Save showcove/c37201b5f63a4369ec20f32a6f054bde to your computer and use it in GitHub Desktop.
StructVSClass - SubViewController2
//
// 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