Skip to content

Instantly share code, notes, and snippets.

@nathantannar4
Created December 26, 2018 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathantannar4/5a43fda2e40fcebe09aba44c23eb60a5 to your computer and use it in GitHub Desktop.
Save nathantannar4/5a43fda2e40fcebe09aba44c23eb60a5 to your computer and use it in GitHub Desktop.
import UIKit
class ViewModelController<ViewModelType: IViewModel>: UIViewController {
let viewModel: ViewModelType
required init(viewModel: ViewModelType) {
self.viewModel = viewModel
super.init(nibName: nil, bundle: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment