Last active
February 26, 2016 15:40
-
-
Save pr1001/7737811fcde3871090d0 to your computer and use it in GitHub Desktop.
Objective C Property and Protocol Problems in Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@protocol MyProtocol | |
- (void)myValue; | |
@end | |
@interface MyClass | |
@property myValue; | |
@end | |
// Objective C category is fine | |
@interface MyClass (Custom) <MyProtocol> | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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