Skip to content

Commit 6b98069

Browse files
author
Luc Dion
committed
Update documentation and set version to 1.7.12
1 parent f2e6c8f commit 6b98069

File tree

6 files changed

+65
-10
lines changed

6 files changed

+65
-10
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@
77

88
# Change Log
99

10+
## [1.7.12](https://github.com/layoutBox/PinLayout/releases/tag/1.7.12)
11+
Released on 2018-08-16
12+
13+
#### Add Animations documentation and example
14+
Add documentation that explains how PinLayout can handle view's animations.
15+
16+
* Show few strategies that can be used to animate views.
17+
* Add an Animation example in the Example app.
18+
* Add an new "Examples" markdown page showing all PinLayout's examples.
19+
* Convert `fileprivate` to `private` declarations
20+
21+
* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#165](https://github.com/layoutBox/PinLayout/pull/165)
22+
23+
1024
## [1.7.11](https://github.com/layoutBox/PinLayout/releases/tag/1.7.11)
1125
Released on 2018-08-05
1226

PinLayout.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |spec|
1010
spec.name = "PinLayout"
11-
spec.version = "1.7.11"
11+
spec.version = "1.7.12"
1212
spec.summary = "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]"
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"

README.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ This example shows how easily PinLayout can adjust its layout based on the view'
162162
* Full control: You're in the middle of the layout process, no magic black box.
163163
* Layout one view at a time. Make it simple to code and debug.
164164
* Concise syntax. Layout most views using a single line.
165-
* [See the complete list here....](docs/PinLayout_principles.md)
165+
* [**See the complete list here....**](docs/PinLayout_principles.md)
166166

167167
<a name="performance"></a>
168168
# PinLayout's Performance
@@ -171,7 +171,7 @@ PinLayout's performance has been measured using the [Layout Framework Benchmark]
171171

172172
As you can see in the following chart, PinLayout are faster or equal to manual layouting, and **between 8x and 12x faster than auto layout**, and this for all types of iPhone (5S/6/6S/7/8/X)
173173

174-
[See here for more details, results and explanation of the benchmark](docs/Benchmark.md).
174+
#### [See here for more details, results and explanation of the benchmark](docs/Benchmark.md).
175175

176176
<p align="center">
177177
<a href="docs/Benchmark.md">
@@ -194,7 +194,7 @@ PinLayout support macOS 10.9+.
194194

195195
### Right to left languages (RTL) support
196196
PinLayout supports left-to-right (LTR) and right-to-left (RTL) languages.
197-
[See here for more details](docs/rtl_support.md).
197+
#### [See here for more details](docs/rtl_support.md).
198198

199199
<br/>
200200

@@ -1488,7 +1488,7 @@ Warnings can be disabled also in debug mode by setting the boolean Pin.logWarnin
14881488

14891489
PinLayout can easily animates Views. Multiple strategies can be used to animate layout using PinLayout.
14901490

1491-
[See the section Animations using PinLayout for more details](docs/animations.md)
1491+
#### [See the section Animations using PinLayout for more details](docs/animations.md)
14921492

14931493
The following animation example is available in the [Examples App](#examples_app).
14941494

@@ -1574,12 +1574,28 @@ github "layoutBox/PinLayout"
15741574

15751575
Then, run `carthage update` to build the framework and drag the built `PinLayout.framework` into your Xcode project.
15761576

1577+
<br>
15771578

15781579
<a name="examples_app"></a>
15791580
## Examples App
15801581

15811582
The PinLayout's Example App exposes some usage example of PinLayout.
1582-
[See the Example App section to get more information](docs_markdown/examples.md).
1583+
1584+
#### [See the Example App section to get more information](docs_markdown/examples.md)
1585+
1586+
Included examples:
1587+
1588+
* The [introduction example](#intro_usage_example) presented previously in this README.
1589+
* Example using a UITableView with variable height cells.
1590+
* Example using a UICollectionView with variable height cells.
1591+
* Example showing how to animate with PinLayout.
1592+
* Example using [`UIView.pin.safeArea`](#safeAreaInsets)
1593+
* Example using [`wrapContent()`](#wrapContent)
1594+
* Example showing right-to-left (RTL) language support.
1595+
* Example showing a simple form example
1596+
* Example showing Relative Edges layout.
1597+
* Example using Objective-C
1598+
* ...
15831599

15841600
:pushpin: Tap on images to see the example's source code.
15851601

@@ -1643,15 +1659,15 @@ bLayer.pin.below(of: aLayer, aligned: .left).size(of: aLayer)
16431659

16441660
PinLayout layouts views immediately after the line containing `.pin` has been fully executed, thanks to ARC (Automatic Reference Counting) this works perfectly on iOS/tvOS/macOS simulators and devices. But in Xcode Playgrounds, ARC doesn't work as expected, object references are kept much longer. This is a well documented issue and have a little impact on the PinLayout behaviour.
16451661

1646-
[See here for more details about using PinLayout in Xcode playgrounds](docs/xcode_playground.md)
1662+
#### [See here for more details about using PinLayout in Xcode playgrounds](docs/xcode_playground.md)
16471663

16481664
<br>
16491665

16501666
<a name="objective_c_interface"></a>
16511667
## PinLayout using Objective-C
16521668
PinLayout also expose an Objective-C interface slightly different than the Swift interface.
16531669

1654-
[See here for more details](docs/objective_c.md)
1670+
#### [See here for more details](docs/objective_c.md)
16551671

16561672
<br>
16571673

docs/Example.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,42 @@ The Example App is available in the [`Example`](https://github.com/layoutBox/Pin
1717
</br>
1818

1919
## Intro Example
20-
PinLayout introduction example.
20+
PinLayout introduction example presented in the README.
21+
2122
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/Intro/IntroView.swift)
2223

2324
<img src="images/pinlayout_intro_example_iphonex.png" width=420/>
2425

2526
## Relative Edges Layout Example
27+
Example showing how to layout views relative to other views.
28+
2629
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/RelativeView/RelativeView.swift)
2730

2831
<img src="pinlayout_exampleapp_relative_position.png" width=180/>
2932

3033
## Multi Relative Edges Layout Example
34+
Example showing how to layout a view relative to many other views.
3135
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/MultiRelativeView)
3236

3337
<img src="pinlayout_exampleapp_multi_relative_position.png" width=180/>
3438

3539
## UITableView Example
40+
Example using a UITableView with variable height cells.
41+
3642
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/TableViewExample/TableViewExampleView.swift)
3743

3844
<img src="pinlayout_exampleapp_tableview.png" width=180/>
3945

4046
## UICollectionView Example
47+
Example using a UICollectionView with variable height cells.
48+
4149
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/CollectionViewExample/HouseCell.swift)
4250

4351
<img src="pinlayout_exampleapp_collectionview.png" width=180/>
4452

4553
## Animations Example
54+
Example showing how to animate views with PinLayout.
55+
4656
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/Animations/AnimationsView.swift)
4757

4858
<img src="images/example-animations.gif" width=180/>
@@ -56,26 +66,41 @@ This example show how PinLayout can support simultaneously Left to right and rig
5666

5767

5868
## pin.safeArea example
69+
Example showing the usage of `UIView.pin.safeArea`] with UINavigationController and UITabViewController.
70+
5971
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/SafeArea/SafeAreaView.swift)
6072

6173
<img src="images/pinlayout_safearea_example_iphonex.png" width=420/>
74+
<img src="images/pinlayout_safearea_2_example_iphonex.png" width=420/>
75+
6276

6377
## Adjust To Container Example
78+
Example showing how PinLayout can be used to adjust the layout depending of the space available.
79+
80+
In this example the UISegmentedControl is shown below its label if the available width is smaller than 500 pixels, or on the same line as the label if the width is wider.
81+
6482
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/AdjustToContainer/Subviews/ChoiceSelectorView.swift")
6583

66-
<img src="pinlayout_example_adjust_to_container-portrait.png" width=180/>
84+
<img src="pinlayout_example_adjust_to_container2.png" width=420/>
85+
6786

6887
## wrapContent Example
88+
This example show how to use the `wrapContent()` method. This method is particularly useful to wrap a group of views and center them.
89+
6990
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/WrapContent/WrapContentView.swift)
7091

7192
<img src="pinlayout_example_wrapContent.png" width=180/>
7293

7394
## Form Example
95+
This example is a basic form containing 4 fields.
96+
7497
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/Form/FormView.swift)
7598

7699
<img src="pinlayout_example_form.gif" width=180/>
77100

78101
## Auto Adjusting Size Example
102+
This example show how fixed size views and expandable views can be layouted using PinLayout to fill the available space.
103+
79104
[Source code](https://github.com/layoutBox/PinLayout/blob/master/Example/PinLayoutSample/UI/Examples/AutoAdjustingSize/AutoAdjustingSizeView.swift)
80105

81106
<img src="pinlayout_exampleapp_auto_adjusting_size.png" width=180/>
1.28 KB
Loading
-29.1 KB
Loading

0 commit comments

Comments
 (0)