Skip to content

Instantly share code, notes, and snippets.

@jessesquires
Created April 6, 2015 05:37
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 jessesquires/6c312a66b175a4ec044f to your computer and use it in GitHub Desktop.
Save jessesquires/6c312a66b175a4ec044f to your computer and use it in GitHub Desktop.
Swift generic constraints, conforming to a superclass and multiple protocols
protocol MyProtocol {
}
protocol MyOtherProtocol {
}
func configure <T: UIViewController where T: MyProtocol, T: MyOtherProtocol> (viewController: T) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment