@@ -78,7 +78,7 @@ - (instancetype)configureForAutoLayout
7878
7979 @return An array of constraints added.
8080 */
81- - (__NSArray_of (NSLayoutConstraint *) *)autoCenterInSuperview
81+ - (PL__NSArray_of (NSLayoutConstraint *) *)autoCenterInSuperview
8282{
8383 __NSMutableArray_of (NSLayoutConstraint *) *constraints = [NSMutableArray new ];
8484 [constraints addObject: [self autoAlignAxisToSuperviewAxis: ALAxisHorizontal]];
@@ -100,14 +100,14 @@ - (NSLayoutConstraint *)autoAlignAxisToSuperviewAxis:(ALAxis)axis
100100 return [self autoConstrainAttribute: (ALAttribute)axis toAttribute: (ALAttribute)axis ofView: superview];
101101}
102102
103- #if __PureLayout_MinBaseSDK_iOS_8_0
103+ #if PL__PureLayout_MinBaseSDK_iOS_8_0
104104
105105/* *
106106 Centers the view in its superview, taking into account the layout margins of both the view and its superview.
107107
108108 @return An array of constraints added.
109109 */
110- - (__NSArray_of (NSLayoutConstraint *) *)autoCenterInSuperviewMargins
110+ - (PL__NSArray_of (NSLayoutConstraint *) *)autoCenterInSuperviewMargins
111111{
112112 __NSMutableArray_of (NSLayoutConstraint *) *constraints = [NSMutableArray new ];
113113 [constraints addObject: [self autoAlignAxisToSuperviewMarginAxis: ALAxisHorizontal]];
@@ -130,7 +130,7 @@ - (NSLayoutConstraint *)autoAlignAxisToSuperviewMarginAxis:(ALAxis)axis
130130 return [self autoConstrainAttribute: (ALAttribute)axis toAttribute: (ALAttribute)marginAxis ofView: superview];
131131}
132132
133- #endif /* __PureLayout_MinBaseSDK_iOS_8_0 */
133+ #endif /* PL__PureLayout_MinBaseSDK_iOS_8_0 */
134134
135135
136136#pragma mark Pin Edges to Superview
@@ -188,7 +188,7 @@ - (NSLayoutConstraint *)autoPinEdgeToSuperviewEdge:(ALEdge)edge withInset:(CGFlo
188188
189189 @return An array of constraints added.
190190 */
191- - (__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdges
191+ - (PL__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdges
192192{
193193 return [self autoPinEdgesToSuperviewEdgesWithInsets: ALEdgeInsetsZero];
194194}
@@ -200,7 +200,7 @@ - (NSLayoutConstraint *)autoPinEdgeToSuperviewEdge:(ALEdge)edge withInset:(CGFlo
200200 @param insets The insets for this view's edges from its superview's edges.
201201 @return An array of constraints added.
202202 */
203- - (__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdgesWithInsets : (ALEdgeInsets)insets
203+ - (PL__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdgesWithInsets : (ALEdgeInsets)insets
204204{
205205 __NSMutableArray_of (NSLayoutConstraint *) *constraints = [NSMutableArray new ];
206206 [constraints addObject: [self autoPinEdgeToSuperviewEdge: ALEdgeTop withInset: insets.top]];
@@ -219,7 +219,7 @@ - (NSLayoutConstraint *)autoPinEdgeToSuperviewEdge:(ALEdge)edge withInset:(CGFlo
219219 @param edge The edge of this view to exclude in pinning to its superview; this method will not apply any constraint to it.
220220 @return An array of constraints added.
221221 */
222- - (__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdgesWithInsets : (ALEdgeInsets)insets excludingEdge : (ALEdge)edge
222+ - (PL__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdgesWithInsets : (ALEdgeInsets)insets excludingEdge : (ALEdge)edge
223223{
224224 __NSMutableArray_of (NSLayoutConstraint *) *constraints = [NSMutableArray new ];
225225 if (edge != ALEdgeTop) {
@@ -237,7 +237,7 @@ - (NSLayoutConstraint *)autoPinEdgeToSuperviewEdge:(ALEdge)edge withInset:(CGFlo
237237 return constraints;
238238}
239239
240- #if __PureLayout_MinBaseSDK_iOS_8_0
240+ #if PL__PureLayout_MinBaseSDK_iOS_8_0
241241
242242/* *
243243 Pins the given edge of the view to the corresponding margin of its superview.
@@ -279,7 +279,7 @@ - (NSLayoutConstraint *)autoPinEdgeToSuperviewMargin:(ALEdge)edge relation:(NSLa
279279
280280 @return An array of constraints added.
281281 */
282- - (__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewMargins
282+ - (PL__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewMargins
283283{
284284 __NSMutableArray_of (NSLayoutConstraint *) *constraints = [NSMutableArray new ];
285285 [constraints addObject: [self autoPinEdgeToSuperviewMargin: ALEdgeTop]];
@@ -295,7 +295,7 @@ - (NSLayoutConstraint *)autoPinEdgeToSuperviewMargin:(ALEdge)edge relation:(NSLa
295295 @param edge The edge of this view to exclude in pinning to its superview; this method will not apply any constraint to it.
296296 @return An array of constraints added.
297297 */
298- - (__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewMarginsExcludingEdge : (ALEdge)edge
298+ - (PL__NSArray_of (NSLayoutConstraint *) *)autoPinEdgesToSuperviewMarginsExcludingEdge : (ALEdge)edge
299299{
300300 __NSMutableArray_of (NSLayoutConstraint *) *constraints = [NSMutableArray new ];
301301 if (edge != ALEdgeTop) {
@@ -313,7 +313,7 @@ - (NSLayoutConstraint *)autoPinEdgeToSuperviewMargin:(ALEdge)edge relation:(NSLa
313313 return constraints;
314314}
315315
316- #endif /* __PureLayout_MinBaseSDK_iOS_8_0 */
316+ #endif /* PL__PureLayout_MinBaseSDK_iOS_8_0 */
317317
318318
319319#pragma mark Pin Edges
@@ -484,7 +484,7 @@ - (NSLayoutConstraint *)autoMatchDimension:(ALDimension)dimension toDimension:(A
484484 @param size The size to set this view's dimensions to.
485485 @return An array of constraints added.
486486 */
487- - (__NSArray_of (NSLayoutConstraint *) *)autoSetDimensionsToSize : (CGSize)size
487+ - (PL__NSArray_of (NSLayoutConstraint *) *)autoSetDimensionsToSize : (CGSize)size
488488{
489489 __NSMutableArray_of (NSLayoutConstraint *) *constraints = [NSMutableArray new ];
490490 [constraints addObject: [self autoSetDimension: ALDimensionWidth toSize: size.width]];
@@ -674,7 +674,7 @@ - (NSLayoutConstraint *)autoPinToTopLayoutGuideOfViewController:(UIViewControlle
674674
675675- (NSLayoutConstraint *)autoPinToTopLayoutGuideOfViewController : (UIViewController *)viewController withInset : (CGFloat)inset relation : (NSLayoutRelation )relation
676676{
677- if (__PureLayout_MinSysVer_iOS_7_0 ) {
677+ if (PL__PureLayout_MinSysVer_iOS_7_0 ) {
678678 self.translatesAutoresizingMaskIntoConstraints = NO ;
679679 NSLayoutConstraint *constraint = [NSLayoutConstraint constraintWithItem: self attribute: NSLayoutAttributeTop relatedBy: relation toItem: viewController.topLayoutGuide attribute: NSLayoutAttributeBottom multiplier: 1.0 constant: inset];
680680 [viewController.view al_addConstraint: constraint]; // Can't use autoInstall because the layout guide is not a view
@@ -708,7 +708,7 @@ - (NSLayoutConstraint *)autoPinToBottomLayoutGuideOfViewController:(UIViewContro
708708 } else if (relation == NSLayoutRelationGreaterThanOrEqual) {
709709 relation = NSLayoutRelationLessThanOrEqual;
710710 }
711- if (__PureLayout_MinSysVer_iOS_7_0 ) {
711+ if (PL__PureLayout_MinSysVer_iOS_7_0 ) {
712712 self.translatesAutoresizingMaskIntoConstraints = NO ;
713713 NSLayoutConstraint *constraint = [NSLayoutConstraint constraintWithItem: self attribute: NSLayoutAttributeBottom relatedBy: relation toItem: viewController.bottomLayoutGuide attribute: NSLayoutAttributeTop multiplier: 1.0 constant: inset];
714714 [viewController.view al_addConstraint: constraint]; // Can't use autoInstall because the layout guide is not a view
@@ -793,13 +793,13 @@ - (NSLayoutConstraint *)al_alignAttribute:(ALAttribute)attribute toView:(ALView
793793 NSAssert (axis != ALAxisVertical, @" Cannot align views that are distributed vertically with ALAttributeBaseline." );
794794 constraint = [self autoAlignAxis: ALAxisBaseline toSameAxisOfView: otherView];
795795 break ;
796- #if __PureLayout_MinBaseSDK_iOS_8_0
796+ #if PL__PureLayout_MinBaseSDK_iOS_8_0
797797 case ALAttributeFirstBaseline:
798- NSAssert (__PureLayout_MinSysVer_iOS_8_0 , @" ALAttributeFirstBaseline is only supported on iOS 8.0 or higher." );
798+ NSAssert (PL__PureLayout_MinSysVer_iOS_8_0 , @" ALAttributeFirstBaseline is only supported on iOS 8.0 or higher." );
799799 NSAssert (axis != ALAxisVertical, @" Cannot align views that are distributed vertically with ALAttributeFirstBaseline." );
800800 constraint = [self autoAlignAxis: ALAxisFirstBaseline toSameAxisOfView: otherView];
801801 break ;
802- #endif /* __PureLayout_MinBaseSDK_iOS_8_0 */
802+ #endif /* PL__PureLayout_MinBaseSDK_iOS_8_0 */
803803 case ALAttributeTop:
804804 NSAssert (axis != ALAxisVertical, @" Cannot align views that are distributed vertically with ALAttributeTop." );
805805 constraint = [self autoPinEdge: ALEdgeTop toEdge: ALEdgeTop ofView: otherView];
@@ -828,7 +828,7 @@ - (NSLayoutConstraint *)al_alignAttribute:(ALAttribute)attribute toView:(ALView
828828 // All of the below attributes are invalid as alignment options. Listing them explicitly (even though they just fall through to the default case) to avoid an incomplete switch statement warning from the compiler.
829829 case ALAttributeWidth:
830830 case ALAttributeHeight:
831- #if __PureLayout_MinBaseSDK_iOS_8_0
831+ #if PL__PureLayout_MinBaseSDK_iOS_8_0
832832 case ALAttributeMarginLeft:
833833 case ALAttributeMarginRight:
834834 case ALAttributeMarginTop:
@@ -837,7 +837,7 @@ - (NSLayoutConstraint *)al_alignAttribute:(ALAttribute)attribute toView:(ALView
837837 case ALAttributeMarginTrailing:
838838 case ALAttributeMarginAxisVertical:
839839 case ALAttributeMarginAxisHorizontal:
840- #endif /* __PureLayout_MinBaseSDK_iOS_8_0 */
840+ #endif /* PL__PureLayout_MinBaseSDK_iOS_8_0 */
841841 default :
842842 NSAssert (nil , @" Unsupported attribute for alignment." );
843843 break ;
0 commit comments