Skip to content

Commit 47158a3

Browse files
committed
update TestObjectiveC.m
1 parent a4dcf31 commit 47158a3

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

TestProjects/carthage/ios/PinLayout-Carthage-iOS/TestObjectiveC.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ - (id)initWithFrame:(CGRect)frame {
4545
- (void) layoutSubviews {
4646
[super layoutSubviews];
4747

48-
[[[[[[logo.pinObjc top] left] width:100] aspectRatio] marginWithTop:topLayoutGuide + 10 horizontal:10 bottom:10] layout];
49-
[[[[segmented.pinObjc rightOf:logo aligned:VerticalAlignTop] right] marginHorizontal:10] layout];
50-
[[[[[[textLabel.pinObjc belowOf:segmented aligned:HorizontalAlignLeft] widthOf:segmented] pinEdges] marginTop:10] sizeToFit:FitWidth] layout];
51-
[[[[[separatorView.pinObjc belowOfViews:@[logo, textLabel] aligned:HorizontalAlignLeft] rightTo:segmented.edge.right] height:1] marginTop:10] layout];
48+
logo.pinObjc.top().left().width(100).aspectRatio.marginTHB(topLayoutGuide + 10, 10, 10).layout();
49+
segmented.pinObjc.rightOfAligned(logo, VerticalAlignTop).right().marginHorizontal(10).layout();
50+
textLabel.pinObjc.belowOfAligned(segmented, HorizontalAlignLeft).widthOf(segmented).pinEdges().marginTop(10).sizeToFitType(FitWidth).layout();
51+
separatorView.pinObjc.belowOfViewsAligned(@[logo, textLabel], HorizontalAlignLeft).rightToEdge(segmented.edge.right).height(1).marginTop(10).layout();
5252
}
5353

5454
@end

TestProjects/cocoapods/ios/PinLayout-iOS/TestObjectiveC.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ - (id)initWithFrame:(CGRect)frame {
4545
- (void) layoutSubviews {
4646
[super layoutSubviews];
4747

48-
[[[[[[logo.pinObjc top] left] width:100] aspectRatio] marginWithTop:topLayoutGuide + 10 horizontal:10 bottom:10] layout];
49-
[[[[segmented.pinObjc rightOf:logo aligned:VerticalAlignTop] right] marginHorizontal:10] layout];
50-
[[[[[[textLabel.pinObjc belowOf:segmented aligned:HorizontalAlignLeft] widthOf:segmented] pinEdges] marginTop:10] sizeToFit:FitWidth] layout];
51-
[[[[[separatorView.pinObjc belowOfViews:@[logo, textLabel] aligned:HorizontalAlignLeft] rightTo:segmented.edge.right] height:1] marginTop:10] layout];
48+
logo.pinObjc.top().left().width(100).aspectRatio.marginTHB(topLayoutGuide + 10, 10, 10).layout();
49+
segmented.pinObjc.rightOfAligned(logo, VerticalAlignTop).right().marginHorizontal(10).layout();
50+
textLabel.pinObjc.belowOfAligned(segmented, HorizontalAlignLeft).widthOf(segmented).pinEdges().marginTop(10).sizeToFitType(FitWidth).layout();
51+
separatorView.pinObjc.belowOfViewsAligned(@[logo, textLabel], HorizontalAlignLeft).rightToEdge(segmented.edge.right).height(1).marginTop(10).layout();
5252
}
5353

5454
@end

TestProjects/cocoapods/macos/PinLayout-macOS/TestObjectiveC.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ - (id)initWithFrame:(CGRect)frame {
2727
- (void)layout {
2828
[super layout];
2929

30-
[[[[[logo.pinObjc top] left] width:100] marginWithTop:topLayoutGuide + 10 horizontal:10 bottom:10] layout];
31-
[[[[separatorView.pinObjc belowOf:logo aligned:HorizontalAlignLeft] height:1] marginTop:10] layout];
30+
logo.pinObjc.top().left().width(100).marginTHB(topLayoutGuide + 10, 10, 10).layout();
31+
separatorView.pinObjc.belowOfAligned(logo, HorizontalAlignLeft).height(1).marginTop(10).layout();
3232
}
3333

3434
@end

TestProjects/cocoapods/tvos/PinLayout-tvOS/TestObjectiveC.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ - (id)initWithFrame:(CGRect)frame {
4545
- (void) layoutSubviews {
4646
[super layoutSubviews];
4747

48-
[[[[[[logo.pinObjc top] left] width:100] aspectRatio] marginWithTop:topLayoutGuide + 10 horizontal:10 bottom:10] layout];
49-
[[[[segmented.pinObjc rightOf:logo aligned:VerticalAlignTop] right] marginHorizontal:10] layout];
50-
[[[[[[textLabel.pinObjc belowOf:segmented aligned:HorizontalAlignLeft] widthOf:segmented] pinEdges] marginTop:10] sizeToFit:FitWidth] layout];
51-
[[[[[separatorView.pinObjc belowOfViews:@[logo, textLabel] aligned:HorizontalAlignLeft] rightTo:segmented.edge.right] height:1] marginTop:10] layout];
48+
logo.pinObjc.top().left().width(100).aspectRatio.marginTHB(topLayoutGuide + 10, 10, 10).layout();
49+
segmented.pinObjc.rightOfAligned(logo, VerticalAlignTop).right().marginHorizontal(10).layout();
50+
textLabel.pinObjc.belowOfAligned(segmented, HorizontalAlignLeft).widthOf(segmented).pinEdges().marginTop(10).sizeToFitType(FitWidth).layout();
51+
separatorView.pinObjc.belowOfViewsAligned(@[logo, textLabel], HorizontalAlignLeft).rightToEdge(segmented.edge.right).height(1).marginTop(10).layout();
5252
}
5353

5454
@end

0 commit comments

Comments
 (0)