Skip to content

Instantly share code, notes, and snippets.

@humblehacker
Created May 24, 2016
Embed
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 = ...
*/
@humblehacker
Copy link
Author

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