Changelog History
Page 3
-
v1.3.2 Changes
π Released on 2018-02-27
β‘οΈ Update Yoga core to latest master
- β‘οΈ Yoga core updated to facebook/[email protected]
- π Yoga core tests and their buck configuration added, see core-tests folder
- β Add buck tests to CI config
- β Added by Alexey Zinchenko in Pull Request #62
-
v1.2.2 Changes
π Released on 2017-12-20
β Add margins methods taking percentage parameters:
marginTop(_ percent: FPercent)
Top margin specify the offset the top edge of the item should have from itβs closest sibling (item) or parent (container).marginLeft(_ percent: FPercent)
Left margin specify the offset the left edge of the item should have from itβs closest sibling (item) or parent (container).marginBottom(_ percent: FPercent)
Bottom margin specify the offset the bottom edge of the item should have from itβs closest sibling (item) or parent (container)marginRight(_ percent: FPercent)
Right margin specify the offset the right edge of the item should have from itβs closest sibling (item) or parent (container).marginStart(_ percent: FPercent)
Set the start margin. In LTR direction, start margin specify the left margin. In RTL direction, start margin specify the right margin.marginEnd(_ percent: FPercent)
Set the end margin. In LTR direction, end margin specify the right margin. In RTL direction, end margin specify the left margin.marginHorizontal(_ percent: FPercent)
Set the left, right, start and end margins to the specified value.marginVertical(_ percent: FPercent)
Set the top and bottom margins to the specified value.Usage examples:
view.flex.margin(20%) view.flex.marginTop(20%).marginLeft(20%) view.flex.marginHorizontal(10%)
-
v1.2.1 Changes
π Released on 2017-11-23
β‘οΈ Update Carthage support
-
v1.2.0 Changes
π Released on 2017-11-23
Many properties can be reset to their initial state. Specifying
nil
when calling these properties reset their value:width(nil)
height(nil)
size(nil)
minWidth(nil)
maxWidth(nil)
minHeight(nil)
maxHeight(nil)
aspectRatio(nil)
FlexLayout now integrates YogaKit source code, this was needed to improve efficiently the iOS's yoga interface.
-
v1.1.4 Changes
π Released on 2017-10-31
β Add new margin methods:
margin(_ insets: UIEdgeInsets)
: Set all margins using UIEdgeInsets. This method is particularly useful to set all margins using iOS 11UIView.safeAreaInsets
margin(_ directionalInsets: NSDirectionalEdgeInsets)
: Set margins using NSDirectionalEdgeInsets. This method is particularly to set all margins using iOS 11UIView.directionalLayoutMargins
β Add new padding methods:
padding(_ insets: UIEdgeInsets)
: Set all paddings using UIEdgeInsets. This method is particularly useful using iOS 11UIView.safeAreaInsets
padding(_ directionalInsets: NSDirectionalEdgeInsets)
: Set paddings using NSDirectionalEdgeInsets. This method is particularly useful to set all paddings using iOS 11UIView.directionalLayoutMargins
β‘οΈ Update all examples to support iPhone X landscape orientation.
β Add an example of UICollectionView using FlexLayout
-
v1.1.0 Changes
π Released on 2017-08-23
- β Add missing markDirty() method
- β :warning: BREAKING CHANGE: Renamed the method
addContainer()
to `addItem(). It is clearer that the added view is in fact a flex item, and not just a flex container. - β Add an implementation of the Ray Wenderlich Yoga Tutorial
- β Add Swift 4.0 support
-
v1.0.0 Changes
π Released on 2017-08-20
- π Initial official release.
- β Add unit tests