BREAKING CHANGE: rename applyLayout to applyLayoutPreservingOrigin.

Summary: Will update on Monday

Reviewed By: emilsjolander

Differential Revision: D4545786

fbshipit-source-id: f8189d82f1c64cd1eac532fd2dfaa9aea35d6004
This commit is contained in:
Dustin Shahidehpour
2017-02-11 11:16:14 -08:00
committed by Facebook Github Bot
parent 063f65d065
commit 4f6924a0c1
8 changed files with 91 additions and 76 deletions

23
YogaKit/CHANGELOG.md Normal file
View File

@@ -0,0 +1,23 @@
# CHANGELOG
The changelog for `YogaKit`.
1.2.0 (**upcoming release**)
-----
### Breaking Changes
- `applyLayout()` has now been changed to `applyLayout(preservingOrigin:)`.
- Computed properties are no longer reflected in getter's of the affected properties.
```swift
// OLD
view.yoga.margin = 10
view.yoga.marginTop // 10
view.yoga.marginLeft // 10
// NEW
view.yoga.margin = 10
view.yoga.marginTop // 0
view.yoga.marginLeft // 0
```