Skip to content

Commit

Permalink
Revert "Set deployment target constraints for margins"
Browse files Browse the repository at this point in the history
This reverts commit 7528f5b.

# Conflicts:
#	Examples/Masonry iOS Examples.xcodeproj/xcshareddata/xcschemes/Masonry iOS Examples.xcscheme
#	Masonry.xcodeproj/project.pbxproj
#	Masonry.xcodeproj/xcshareddata/xcschemes/Masonry OSX.xcscheme
#	Masonry.xcodeproj/xcshareddata/xcschemes/Masonry iOS.xcscheme
#	Tests/Masonry Tests.xcodeproj/xcshareddata/xcschemes/Masonry iOS Tests.xcscheme
  • Loading branch information
robertjpayne committed Sep 28, 2017
1 parent ba96e71 commit bf56075
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Masonry/MASConstraint.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

- (MASConstraint *)leftMargin;
- (MASConstraint *)rightMargin;
Expand Down
2 changes: 1 addition & 1 deletion Masonry/MASConstraint.m
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ - (MASConstraint *)lastBaseline {

#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

- (MASConstraint *)leftMargin {
return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin];
Expand Down
4 changes: 2 additions & 2 deletions Masonry/MASConstraintMaker.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ typedef NS_OPTIONS(NSInteger, MASAttribute) {

#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

MASAttributeLeftMargin = 1 << NSLayoutAttributeLeftMargin,
MASAttributeRightMargin = 1 << NSLayoutAttributeRightMargin,
Expand Down Expand Up @@ -74,7 +74,7 @@ typedef NS_OPTIONS(NSInteger, MASAttribute) {

#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

@property (nonatomic, strong, readonly) MASConstraint *leftMargin;
@property (nonatomic, strong, readonly) MASConstraint *rightMargin;
Expand Down
6 changes: 3 additions & 3 deletions Masonry/MASConstraintMaker.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ - (MASConstraint *)addConstraintWithAttributes:(MASAttribute)attrs {
#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)
| MASAttributeFirstBaseline | MASAttributeLastBaseline
#endif
#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV
| MASAttributeLeftMargin | MASAttributeRightMargin | MASAttributeTopMargin | MASAttributeBottomMargin
| MASAttributeLeadingMargin | MASAttributeTrailingMargin | MASAttributeCenterXWithinMargins
| MASAttributeCenterYWithinMargins
Expand Down Expand Up @@ -111,7 +111,7 @@ - (MASConstraint *)addConstraintWithAttributes:(MASAttribute)attrs {

#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

if (attrs & MASAttributeLeftMargin) [attributes addObject:self.view.mas_leftMargin];
if (attrs & MASAttributeRightMargin) [attributes addObject:self.view.mas_rightMargin];
Expand Down Expand Up @@ -205,7 +205,7 @@ - (MASConstraint *)lastBaseline {
#endif


#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

- (MASConstraint *)leftMargin {
return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin];
Expand Down
2 changes: 1 addition & 1 deletion Masonry/NSLayoutConstraint+MASDebugAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ + (NSDictionary *)layoutAttributeDescriptionsByValue {
@(NSLayoutAttributeLastBaseline) : @"lastBaseline",
#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV
@(NSLayoutAttributeLeftMargin) : @"leftMargin",
@(NSLayoutAttributeRightMargin) : @"rightMargin",
@(NSLayoutAttributeTopMargin) : @"topMargin",
Expand Down
2 changes: 1 addition & 1 deletion Masonry/View+MASAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

@property (nonatomic, strong, readonly) MASViewAttribute *mas_leftMargin;
@property (nonatomic, strong, readonly) MASViewAttribute *mas_rightMargin;
Expand Down
2 changes: 1 addition & 1 deletion Masonry/View+MASAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ - (MASViewAttribute *)mas_lastBaseline {

#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

- (MASViewAttribute *)mas_leftMargin {
return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeftMargin];
Expand Down
4 changes: 2 additions & 2 deletions Masonry/View+MASShorthandAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

@property (nonatomic, strong, readonly) MASViewAttribute *leftMargin;
@property (nonatomic, strong, readonly) MASViewAttribute *rightMargin;
Expand Down Expand Up @@ -90,7 +90,7 @@ MAS_ATTR_FORWARD(lastBaseline);

#endif

#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000)
#if TARGET_OS_IPHONE || TARGET_OS_TV

MAS_ATTR_FORWARD(leftMargin);
MAS_ATTR_FORWARD(rightMargin);
Expand Down

1 comment on commit bf56075

@xingheng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robertjpayne Could I have a reason for this? I think it must conflict with the iOS 6 deployment target.

Please sign in to comment.