Skip to content

Commit dea3d94

Browse files
committed
Deprecations
1 parent 5e72da6 commit dea3d94

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Masonry/ViewController+MASAdditions.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
/**
1818
* following properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute
1919
*/
20-
@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide;
21-
@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide;
22-
@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop;
23-
@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom;
24-
@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop;
25-
@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom;
26-
20+
@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide NS_DEPRECATED_IOS(8.0, 11.0);
21+
@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide NS_DEPRECATED_IOS(8.0, 11.0);
22+
@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop NS_DEPRECATED_IOS(8.0, 11.0);
23+
@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom NS_DEPRECATED_IOS(8.0, 11.0);
24+
@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop NS_DEPRECATED_IOS(8.0, 11.0);
25+
@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom NS_DEPRECATED_IOS(8.0, 11.0);
2726

2827
@end
2928

Masonry/ViewController+MASAdditions.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
@implementation MAS_VIEW_CONTROLLER (MASAdditions)
1414

15+
#pragma clang diagnostic push
16+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
17+
1518
- (MASViewAttribute *)mas_topLayoutGuide {
1619
return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom];
1720
}
@@ -32,7 +35,7 @@ - (MASViewAttribute *)mas_bottomLayoutGuideBottom {
3235
return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeBottom];
3336
}
3437

35-
38+
#pragma clang diagnostic pop
3639

3740
@end
3841

0 commit comments

Comments
 (0)