123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #import "MASUtilities.h"
- #import "MASConstraintMaker.h"
- #import "MASViewAttribute.h"
- @interface MAS_VIEW (MASAdditions)
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_left;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_top;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_right;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottom;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_leading;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_trailing;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_width;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_height;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerX;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerY;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_baseline;
- @property (nonatomic, strong, readonly) MASViewAttribute *(^mas_attribute)(NSLayoutAttribute attr);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_firstBaseline;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_lastBaseline;
- #if TARGET_OS_IPHONE || TARGET_OS_TV
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_leftMargin;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_rightMargin;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_topMargin;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomMargin;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_leadingMargin;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_trailingMargin;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerXWithinMargins;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerYWithinMargins;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuide NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideLeading NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideTrailing NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideLeft NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideRight NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideTop NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideBottom NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideWidth NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideHeight NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideCenterX NS_AVAILABLE_IOS(11.0);
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_safeAreaLayoutGuideCenterY NS_AVAILABLE_IOS(11.0);
- #endif
- @property (nonatomic, strong) id mas_key;
- - (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view;
- - (NSArray *)mas_makeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *make))block;
- - (NSArray *)mas_updateConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *make))block;
- - (NSArray *)mas_remakeConstraints:(void(NS_NOESCAPE ^)(MASConstraintMaker *make))block;
- @end
|