Skip to content

Instantly share code, notes, and snippets.

@pr1001
Last active February 26, 2016 15:40
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 pr1001/7737811fcde3871090d0 to your computer and use it in GitHub Desktop.
Save pr1001/7737811fcde3871090d0 to your computer and use it in GitHub Desktop.
Objective C Property and Protocol Problems in Swift
@protocol MyProtocol
- (void)myValue;
@end
@interface MyClass
@property myValue;
@end
// Objective C category is fine
@interface MyClass (Custom) <MyProtocol>
@end
// Swift extension refuses to compile
extension MyClass: MyProtocol { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment