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
extension ASLayoutElement { | |
public func withOverlay(_ overlay: ASLayoutElement) -> ASOverlayLayoutSpec { | |
return ASOverlayLayoutSpec(child: self, overlay: overlay) | |
} | |
public func withBackgorund(_ background: ASLayoutElement) -> ASBackgroundLayoutSpec { | |
return ASBackgroundLayoutSpec(child: self, background: background) | |
} | |
public func withRatio(_ ratio: CGFloat) -> ASRatioLayoutSpec { |
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
// clang -o test-proto -Wall -framework Foundation -fmodules -fobjc-arc test-proto.m && test | |
@import Foundation; | |
@protocol A <NSObject> | |
@property (nonatomic, copy, readonly) NSString *a; | |
@end | |
@protocol B <A> | |
@property (nonatomic, copy, readonly) NSString *b; |
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
@interface Shape : NSObject | |
@end | |
@interface Circle : Shape | |
@end | |
@interface Triangle : Shape | |
- (BOOL)isEquilateral; | |
@end |