Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sandeeplearner/29f276ed51749ce41780e0c82b75ace9 to your computer and use it in GitHub Desktop.
Save sandeeplearner/29f276ed51749ce41780e0c82b75ace9 to your computer and use it in GitHub Desktop.
ViewController with ViewModel
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