Skip to content

Instantly share code, notes, and snippets.

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 JohnSundell/d51573acb11e555dee865b80572f14dd to your computer and use it in GitHub Desktop.
Save JohnSundell/d51573acb11e555dee865b80572f14dd to your computer and use it in GitHub Desktop.
class ViewController: UIViewController {
private let modelLoader: AnyModelLoader<MyModel>
init<T: ModelLoading>(modelLoader: T) where T.Model == MyModel {
self.modelLoader = AnyModelLoader(loader: modelLoader)
super.init(nibName: nil, bundle: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment