Skip to content

Commit 93feb9f

Browse files
committed
Update project to 1.10.0
1 parent c33d7ab commit 93feb9f

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed

Diff for: CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@
77

88
# Change Log
99

10+
## [1.10.0](https://github.com/layoutBox/PinLayout/releases/tag/1.10.0)
11+
Released on 2021-05-18
12+
13+
#### New Objective-C interface
14+
Instead of using verbose Objective-C with all brackets (`[ ]`):
15+
```
16+
[[[[[[logo.pinObjc top] left] width:100] aspectRatio] marginWithTop:topLayoutGuide + 10 horizontal:10 bottom:10] layout];
17+
```
18+
19+
It now use a function chaining:
20+
```
21+
logo.pinObjc.topInsets(safeArea).leftInsets(safeArea).width(100).aspectRatio().margin(margin).layout();
22+
```
23+
24+
Added by [protosse](https://github.com/protosse) in Pull Request [#229](https://github.com/layoutBox/PinLayout/pull/229)
25+
1026
## [1.9.4](https://github.com/layoutBox/PinLayout/releases/tag/1.9.4)
1127
Released on 2021-05-17
1228

Diff for: PinLayout.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
Pod::Spec.new do |spec|
1010
spec.name = "PinLayout"
11-
spec.version = "1.9.4"
11+
spec.version = "1.10.0"
1212
spec.summary = "Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast."
1313
spec.description = "Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]"
1414
spec.homepage = "https://github.com/layoutBox/PinLayout"
1515
spec.license = "MIT license"
1616
spec.author = { "Luc Dion" => "[email protected]" }
1717
spec.source = { :git => "https://github.com/layoutBox/PinLayout.git", :tag => "#{spec.version}" }
1818
spec.source_files = "Sources/**/*.swift"
19-
spec.swift_versions = ['4.2', '5.0', '5.1', '5.2', '5.3']
19+
spec.swift_versions = ['4.2', '5.0', '5.1', '5.2', '5.3', '5.4']
2020

2121
spec.ios.deployment_target = '9.0'
2222
spec.ios.frameworks = 'Foundation', 'CoreGraphics', 'UIKit'

Diff for: Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- Nimble (9.2.0)
3-
- PinLayout (1.9.3)
3+
- PinLayout (1.9.4)
44
- Quick (4.0.0)
55
- SwiftLint (0.43.1)
66

@@ -22,7 +22,7 @@ EXTERNAL SOURCES:
2222

2323
SPEC CHECKSUMS:
2424
Nimble: 4f4a345c80b503b3ea13606a4f98405974ee4d0b
25-
PinLayout: 45d8413afa778da892f6c2d4f898fb8de88c8e29
25+
PinLayout: 0d73cf5bea456b8112429c984de377839b9ec34c
2626
Quick: 6473349e43b9271a8d43839d9ba1c442ed1b7ac4
2727
SwiftLint: 99f82d07b837b942dd563c668de129a03fc3fb52
2828

Diff for: TestProjects/carthage/ios/Cartfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "layoutBox/PinLayout"
1+
git "file:////Users/lucdion/dev_luc/PinLayout"

Diff for: TestProjects/carthage/ios/PinLayout-Carthage-iOS/TestObjectiveC.m

+4-4
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().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();
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)