Created
May 12, 2020 21:13
-
-
Save sandeeplearner/29f276ed51749ce41780e0c82b75ace9 to your computer and use it in GitHub Desktop.
ViewController with ViewModel
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
class CarViewController: UIViewController { | |
private let viewModel:CarViewModel | |
required init(with viewModel: CarViewModel) { | |
self.viewModel = viewModel | |
super.init(nibName: nil, bundle: nil) | |
} | |
required init?(coder: NSCoder) { | |
fatalError("init(coder:) has not been implemented") | |
} | |
} | |
class CarViewModel { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment