Skip to content

Instantly share code, notes, and snippets.

@humblehacker
Created May 24, 2016 16:00
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 humblehacker/639f8cb0dfd0b8f0c5124cd7477d7fc0 to your computer and use it in GitHub Desktop.
Save humblehacker/639f8cb0dfd0b8f0c5124cd7477d7fc0 to your computer and use it in GitHub Desktop.
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

Coming in Swift 4!

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