Skip to content

Instantly share code, notes, and snippets.

@sandeeplearner
Created May 12, 2020 21:54
Show Gist options
  • Select an option

  • Save sandeeplearner/1f25aa9ca47b38f3ced2841e73ffd115 to your computer and use it in GitHub Desktop.

Select an option

Save sandeeplearner/1f25aa9ca47b38f3ced2841e73ffd115 to your computer and use it in GitHub Desktop.
sample classes with protocol confirmation
class CarViewController: UIViewController, ViewControllerProtocol {
var viewModel: CarViewModel!
typealias viewModelType = CarViewModel
}
class PlaneViewController: UIViewController, ViewControllerProtocol {
var viewModel: PlaneViewModel!
typealias viewModelType = PlaneViewModel
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment