- Upgrade Libraries

This commit is contained in:
giuseppenuc committed 2019-10-23 01:07:16 +02:00
1 parent 060efc0c83
commit f84e3ef366
535 files changed
+14099 -19527

No files matched your search

@@ -222,6 +222,7 @@ PL__ASSUME_NONNULL_BEGIN
#pragma mark Pin to Layout Guides (iOS only)
#if TARGET_OS_IPHONE
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_11_0 // Top and bottom layout guides were deprecated in iOS 11
/** Pins the top edge of the view to the top layout guide of the given view controller with an inset. Available on iOS only. */
- (NSLayoutConstraint *)autoPinToTopLayoutGuideOfViewController:(UIViewController *)viewController withInset:(CGFloat)inset;
@@ -235,6 +236,7 @@ PL__ASSUME_NONNULL_BEGIN
/** Pins the bottom edge of the view to the bottom layout guide of the given view controller with an inset as a maximum or minimum. Available on iOS only. */
- (NSLayoutConstraint *)autoPinToBottomLayoutGuideOfViewController:(UIViewController *)viewController withInset:(CGFloat)inset relation:(NSLayoutRelation)relation;
#endif /* __IPHONE_OS_VERSION_MIN_REQUIRED */
#endif /* TARGET_OS_IPHONE */
@end
@@ -297,7 +297,7 @@
}
break;
}
constraint.active = YES;
[constraint autoInstall];
return constraint;
#else
return [self autoPinEdgeToSuperviewEdge:edge withInset:inset relation:relation];
@@ -502,7 +502,7 @@
Pins the given edge of the view to the corresponding margin of its superview with an inset.
@param edge The edge of this view to pin to the corresponding margin of its superview.
@param @param inset The amount to inset this view's edge from the corresponding margin of its superview edge.
@param inset The amount to inset this view's edge from the corresponding margin of its superview edge.
@return The constraint added.
*/
- (NSLayoutConstraint *)autoPinEdgeToSuperviewMargin:(ALEdge)edge withInset:(CGFloat)inset
@@ -956,7 +956,7 @@
#pragma mark Pin to Layout Guides
#if TARGET_OS_IPHONE
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_11_0 // Top and bottom layout guides were deprecated in iOS 11
/**
Pins the top edge of the view to the top layout guide of the given view controller with an inset.
For compatibility with iOS 6 (where layout guides do not exist), this method will simply pin the top edge of
@@ -1018,6 +1018,7 @@
}
}
#endif /* __IPHONE_OS_VERSION_MIN_REQUIRED */
#endif /* TARGET_OS_IPHONE */
#pragma mark Internal Methods
@@ -373,73 +373,73 @@ static PL__NSMutableArray_of(NSString *) *_al_globalConstraintIdentifiers = nil;
{
NSLayoutAttribute layoutAttribute = NSLayoutAttributeNotAnAttribute;
switch (attribute) {
case ALEdgeLeft:
case ALAttributeLeft:
layoutAttribute = NSLayoutAttributeLeft;
break;
case ALEdgeRight:
case ALAttributeRight:
layoutAttribute = NSLayoutAttributeRight;
break;
case ALEdgeTop:
case ALAttributeTop:
layoutAttribute = NSLayoutAttributeTop;
break;
case ALEdgeBottom:
case ALAttributeBottom:
layoutAttribute = NSLayoutAttributeBottom;
break;
case ALEdgeLeading:
case ALAttributeLeading:
layoutAttribute = NSLayoutAttributeLeading;
break;
case ALEdgeTrailing:
case ALAttributeTrailing:
layoutAttribute = NSLayoutAttributeTrailing;
break;
case ALDimensionWidth:
case ALAttributeWidth:
layoutAttribute = NSLayoutAttributeWidth;
break;
case ALDimensionHeight:
case ALAttributeHeight:
layoutAttribute = NSLayoutAttributeHeight;
break;
case ALAxisVertical:
case ALAttributeVertical:
layoutAttribute = NSLayoutAttributeCenterX;
break;
case ALAxisHorizontal:
case ALAttributeHorizontal:
layoutAttribute = NSLayoutAttributeCenterY;
break;
case ALAxisBaseline: // same value as ALAxisLastBaseline
case ALAttributeBaseline: // same value as ALAxisLastBaseline
layoutAttribute = NSLayoutAttributeBaseline;
break;
#if PL__PureLayout_MinBaseSDK_iOS_8_0
case ALAxisFirstBaseline:
case ALAttributeFirstBaseline:
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"ALAxisFirstBaseline is only supported on iOS 8.0 or higher.");
layoutAttribute = NSLayoutAttributeFirstBaseline;
break;
case ALMarginLeft:
case ALAttributeMarginLeft:
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"ALEdgeLeftMargin is only supported on iOS 8.0 or higher.");
layoutAttribute = NSLayoutAttributeLeftMargin;
break;
case ALMarginRight:
case ALAttributeMarginRight:
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"ALEdgeRightMargin is only supported on iOS 8.0 or higher.");
layoutAttribute = NSLayoutAttributeRightMargin;
break;
case ALMarginTop:
case ALAttributeMarginTop:
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"ALEdgeTopMargin is only supported on iOS 8.0 or higher.");
layoutAttribute = NSLayoutAttributeTopMargin;
break;
case ALMarginBottom:
case ALAttributeMarginBottom:
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"ALEdgeBottomMargin is only supported on iOS 8.0 or higher.");
layoutAttribute = NSLayoutAttributeBottomMargin;
break;
case ALMarginLeading:
case ALAttributeMarginLeading:
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"ALEdgeLeadingMargin is only supported on iOS 8.0 or higher.");
layoutAttribute = NSLayoutAttributeLeadingMargin;
break;
case ALMarginTrailing:
case ALAttributeMarginTrailing:
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"ALEdgeTrailingMargin is only supported on iOS 8.0 or higher.");
layoutAttribute = NSLayoutAttributeTrailingMargin;
break;
case ALMarginAxisVertical:
case ALAttributeMarginAxisVertical:
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"ALAxisVerticalMargin is only supported on iOS 8.0 or higher.");
layoutAttribute = NSLayoutAttributeCenterXWithinMargins;
break;
case ALMarginAxisHorizontal:
case ALAttributeMarginAxisHorizontal:
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"ALAxisHorizontalMargin is only supported on iOS 8.0 or higher.");
layoutAttribute = NSLayoutAttributeCenterYWithinMargins;
break;