Skip to content

Instantly share code, notes, and snippets.

Created May 24, 2016
What would you like to do?
Variable declaration of concrete class and protocol conformance
UIViewController<SomeProtocol> *vc = ...;
/** I wish I could do this in Swift.
let vc: UIViewController, SomeProtocol = ...
Copy link

humblehacker commented Jun 27, 2017

Coming in Swift 4!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment