Skip to content

Commit e66037d

Browse files
author
Luc Dion
committed
Update readme.md
1 parent c36b2f6 commit e66037d

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,22 @@
77

88
# Change Log
99

10+
## [1.5.2](https://github.com/layoutBox/FlexLayout/releases/tag/1.5.2)
11+
Released on 2017-12-22
12+
13+
* POSSIBLE BREAKING CHANGE: PinLayout now keeps UIView's transform (scale, rotation, ...)
14+
Previously any view's transform was altered after layouting the view with PinLayout. Now PinLayout won't affect the view's transforms.
15+
16+
For people not using transforms, this should be a non-breaking change. If someone is using transforms with PinLayout, this may change the behavior, although I think this will produce the expected results (ie, transforms not being affected/altered by layout).
17+
18+
* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#49](https://github.com/mirego/PinLayout/pull/107)
19+
20+
1021
## [1.5.1](https://github.com/mirego/PinLayout/releases/tag/1.5.1)
22+
1123
#### Change
1224

13-
* ##### Add `layout()` method to support Xcode playgrounds
25+
* Add `layout()` method to support Xcode playgrounds
1426
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. The impact of this problem is that PinLayout doesn't layout views at the time and in the order required. To handle this situation in playgrounds it is possible to call the `layout()` method to complete the layout.
1527

1628
[See PinLayout in Xcode Playgrounds documentation for more information](https://github.com/mirego/PinLayout#playgrounds)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,8 @@ PinLayout also expose an Objective-C interface slightly different than the Swift
13871387
let percentageValue: CGFloat = 50
13881388
view.pin.width(percentageValue%)
13891389
```
1390-
* For other questions, you can checks already [answered questions here.](https://github.com/mirego/PinLayout/issues?q=is%3Aissue+is%3Aclosed+label%3Aquestion)
1390+
* **Q: How does PinLayout handle UIView's transforms?**
1391+
**R:** PinLayout set the frame of the non-transformed view. So PinLayout won't affect the view's transforms.
13911392

13921393
<br>
13931394

0 commit comments

Comments
 (0)