Skip to content

Commit ccb38c5

Browse files
committed
Merge pull request PureLayout#113 from joshjiav5/master
Fixes PureLayout#112
2 parents 277ff0e + 81ee4fa commit ccb38c5

19 files changed

+198
-196
lines changed

PureLayout/Example-iOS/Demos/ALiOSDemo9ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ - (void)loadView
3838
- (void)updateViewConstraints
3939
{
4040
if (!self.didSetupConstraints) {
41-
NSAssert(__PureLayout_MinSysVer_iOS_8_0, @"This demo requires iOS 8.0 or higher to run.");
41+
NSAssert(PL__PureLayout_MinSysVer_iOS_8_0, @"This demo requires iOS 8.0 or higher to run.");
4242

4343
// Before layout margins were introduced, this is a typical way of giving a subview some padding from its superview's edges
4444
[self.blueView autoPinToTopLayoutGuideOfViewController:self withInset:10.0];

PureLayout/PureLayout.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,7 @@
16341634
MACOSX_DEPLOYMENT_TARGET = 10.7;
16351635
ONLY_ACTIVE_ARCH = YES;
16361636
SDKROOT = iphoneos;
1637+
WARNING_CFLAGS = "-Wreserved-id-macro";
16371638
};
16381639
name = Debug;
16391640
};
@@ -1661,6 +1662,7 @@
16611662
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
16621663
SDKROOT = iphoneos;
16631664
VALIDATE_PRODUCT = YES;
1665+
WARNING_CFLAGS = "-Wreserved-id-macro";
16641666
};
16651667
name = Release;
16661668
};

PureLayout/PureLayout/ALView+PureLayout.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#import "PureLayoutDefines.h"
3030

3131

32-
__PL_ASSUME_NONNULL_BEGIN
32+
PL__ASSUME_NONNULL_BEGIN
3333

3434
#pragma mark ALView+PureLayout
3535

@@ -54,20 +54,20 @@ __PL_ASSUME_NONNULL_BEGIN
5454
#pragma mark Center & Align in Superview
5555

5656
/** Centers the view in its superview. */
57-
- (__NSArray_of(NSLayoutConstraint *) *)autoCenterInSuperview;
57+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoCenterInSuperview;
5858

5959
/** Aligns the view to the same axis of its superview. */
6060
- (NSLayoutConstraint *)autoAlignAxisToSuperviewAxis:(ALAxis)axis;
6161

62-
#if __PureLayout_MinBaseSDK_iOS_8_0
62+
#if PL__PureLayout_MinBaseSDK_iOS_8_0
6363

6464
/** Centers the view in its superview's margins. Available in iOS 8.0 and later. */
65-
- (__NSArray_of(NSLayoutConstraint *) *)autoCenterInSuperviewMargins;
65+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoCenterInSuperviewMargins;
6666

6767
/** Aligns the view to the corresponding margin axis of its superview. Available in iOS 8.0 and later. */
6868
- (NSLayoutConstraint *)autoAlignAxisToSuperviewMarginAxis:(ALAxis)axis;
6969

70-
#endif /* __PureLayout_MinBaseSDK_iOS_8_0 */
70+
#endif /* PL__PureLayout_MinBaseSDK_iOS_8_0 */
7171

7272

7373
#pragma mark Pin Edges to Superview
@@ -82,15 +82,15 @@ __PL_ASSUME_NONNULL_BEGIN
8282
- (NSLayoutConstraint *)autoPinEdgeToSuperviewEdge:(ALEdge)edge withInset:(CGFloat)inset relation:(NSLayoutRelation)relation;
8383

8484
/** Pins the edges of the view to the edges of its superview. */
85-
- (__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdges;
85+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdges;
8686

8787
/** Pins the edges of the view to the edges of its superview with the given edge insets. */
88-
- (__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdgesWithInsets:(ALEdgeInsets)insets;
88+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdgesWithInsets:(ALEdgeInsets)insets;
8989

9090
/** Pins 3 of the 4 edges of the view to the edges of its superview with the given edge insets, excluding one edge. */
91-
- (__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdgesWithInsets:(ALEdgeInsets)insets excludingEdge:(ALEdge)edge;
91+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewEdgesWithInsets:(ALEdgeInsets)insets excludingEdge:(ALEdge)edge;
9292

93-
#if __PureLayout_MinBaseSDK_iOS_8_0
93+
#if PL__PureLayout_MinBaseSDK_iOS_8_0
9494

9595
/** Pins the given edge of the view to the corresponding margin of its superview. Available in iOS 8.0 and later. */
9696
- (NSLayoutConstraint *)autoPinEdgeToSuperviewMargin:(ALEdge)edge;
@@ -99,12 +99,12 @@ __PL_ASSUME_NONNULL_BEGIN
9999
- (NSLayoutConstraint *)autoPinEdgeToSuperviewMargin:(ALEdge)edge relation:(NSLayoutRelation)relation;
100100

101101
/** Pins the edges of the view to the margins of its superview. Available in iOS 8.0 and later. */
102-
- (__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewMargins;
102+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewMargins;
103103

104104
/** Pins 3 of the 4 edges of the view to the margins of its superview excluding one edge. Available in iOS 8.0 and later. */
105-
- (__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewMarginsExcludingEdge:(ALEdge)edge;
105+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewMarginsExcludingEdge:(ALEdge)edge;
106106

107-
#endif /* __PureLayout_MinBaseSDK_iOS_8_0 */
107+
#endif /* PL__PureLayout_MinBaseSDK_iOS_8_0 */
108108

109109

110110
#pragma mark Pin Edges
@@ -152,7 +152,7 @@ __PL_ASSUME_NONNULL_BEGIN
152152
#pragma mark Set Dimensions
153153

154154
/** Sets the view to a specific size. */
155-
- (__NSArray_of(NSLayoutConstraint *) *)autoSetDimensionsToSize:(CGSize)size;
155+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoSetDimensionsToSize:(CGSize)size;
156156

157157
/** Sets the given dimension of the view to a specific size. */
158158
- (NSLayoutConstraint *)autoSetDimension:(ALDimension)dimension toSize:(CGFloat)size;
@@ -210,4 +210,4 @@ __PL_ASSUME_NONNULL_BEGIN
210210

211211
@end
212212

213-
__PL_ASSUME_NONNULL_END
213+
PL__ASSUME_NONNULL_END

PureLayout/PureLayout/ALView+PureLayout.m

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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;

PureLayout/PureLayout/NSArray+PureLayout.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#import "PureLayoutDefines.h"
3030

3131

32-
__PL_ASSUME_NONNULL_BEGIN
32+
PL__ASSUME_NONNULL_BEGIN
3333

3434
#pragma mark NSArray+PureLayout
3535

@@ -49,48 +49,48 @@ __PL_ASSUME_NONNULL_BEGIN
4949
/** Deactivates the constraints in this array. */
5050
- (void)autoRemoveConstraints;
5151

52-
#if __PureLayout_MinBaseSDK_iOS_8_0 || __PureLayout_MinBaseSDK_OSX_10_10
52+
#if PL__PureLayout_MinBaseSDK_iOS_8_0 || PL__PureLayout_MinBaseSDK_OSX_10_10
5353

5454
/** Sets the string as the identifier for the constraints in this array. Available in iOS 7.0 and OS X 10.9 and later. */
5555
- (instancetype)autoIdentifyConstraints:(NSString *)identifier;
5656

57-
#endif /* __PureLayout_MinBaseSDK_iOS_8_0 || __PureLayout_MinBaseSDK_OSX_10_10 */
57+
#endif /* PL__PureLayout_MinBaseSDK_iOS_8_0 || PL__PureLayout_MinBaseSDK_OSX_10_10 */
5858

5959

6060
#pragma mark Array of Views
6161

6262
/** Aligns views in this array to one another along a given edge. */
63-
- (__NSArray_of(NSLayoutConstraint *) *)autoAlignViewsToEdge:(ALEdge)edge;
63+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoAlignViewsToEdge:(ALEdge)edge;
6464

6565
/** Aligns views in this array to one another along a given axis. */
66-
- (__NSArray_of(NSLayoutConstraint *) *)autoAlignViewsToAxis:(ALAxis)axis;
66+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoAlignViewsToAxis:(ALAxis)axis;
6767

6868
/** Matches a given dimension of all the views in this array. */
69-
- (__NSArray_of(NSLayoutConstraint *) *)autoMatchViewsDimension:(ALDimension)dimension;
69+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoMatchViewsDimension:(ALDimension)dimension;
7070

7171
/** Sets the given dimension of all the views in this array to a given size. */
72-
- (__NSArray_of(NSLayoutConstraint *) *)autoSetViewsDimension:(ALDimension)dimension toSize:(CGFloat)size;
72+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoSetViewsDimension:(ALDimension)dimension toSize:(CGFloat)size;
7373

7474
/** Sets all of the views in this array to a given size. */
75-
- (__NSArray_of(NSLayoutConstraint *) *)autoSetViewsDimensionsToSize:(CGSize)size;
75+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoSetViewsDimensionsToSize:(CGSize)size;
7676

7777

7878
/** Distributes the views in this array equally along the selected axis in their superview.
7979
Views will be the same size (variable) in the dimension along the axis and will have spacing (fixed) between them. */
80-
- (__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
80+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
8181
alignedTo:(ALAttribute)alignment
8282
withFixedSpacing:(CGFloat)spacing;
8383

8484
/** Distributes the views in this array equally along the selected axis in their superview.
8585
Views will be the same size (variable) in the dimension along the axis and will have spacing (fixed) between them, with optional insets from the first and last views to their superview. */
86-
- (__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
86+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
8787
alignedTo:(ALAttribute)alignment
8888
withFixedSpacing:(CGFloat)spacing
8989
insetSpacing:(BOOL)shouldSpaceInsets;
9090

9191
/** Distributes the views in this array equally along the selected axis in their superview.
9292
Views will have spacing (fixed) between them, with optional insets from the first and last views to their superview, and optionally constrained to the same size in the dimension along the axis. */
93-
- (__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
93+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
9494
alignedTo:(ALAttribute)alignment
9595
withFixedSpacing:(CGFloat)spacing
9696
insetSpacing:(BOOL)shouldSpaceInsets
@@ -99,17 +99,17 @@ __PL_ASSUME_NONNULL_BEGIN
9999

100100
/** Distributes the views in this array equally along the selected axis in their superview.
101101
Views will be the same size (fixed) in the dimension along the axis and will have spacing (variable) between them. */
102-
- (__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
102+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
103103
alignedTo:(ALAttribute)alignment
104104
withFixedSize:(CGFloat)size;
105105

106106
/** Distributes the views in this array equally along the selected axis in their superview.
107107
Views will be the same size (fixed) in the dimension along the axis and will have spacing (variable) between them, with optional insets from the first and last views to their superview. */
108-
- (__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
108+
- (PL__NSArray_of(NSLayoutConstraint *) *)autoDistributeViewsAlongAxis:(ALAxis)axis
109109
alignedTo:(ALAttribute)alignment
110110
withFixedSize:(CGFloat)size
111111
insetSpacing:(BOOL)shouldSpaceInsets;
112112

113113
@end
114114

115-
__PL_ASSUME_NONNULL_END
115+
PL__ASSUME_NONNULL_END

0 commit comments

Comments
 (0)