Skip to content

Releases: layoutBox/FlexLayout

width/height methods taking percentage parameter

18 Oct 01:39

Choose a tag to compare

Add width/height methods taking percentage parameter
* width(_ percent: FPercent)
* height(_ percent: FPercent)
* minWidth(_ percent: FPercent)
* maxWidth(_ percent: FPercent)
* minHeight(_ percent: FPercent)
* maxHeight(_ percent: FPercent)

Usage examples:

* view.flex.width(50%)
* view.flex.height(25%)

* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#28](https://github.com/lucdion/FlexLayout/pull/28) 

Add Carthage support

02 Oct 19:37

Choose a tag to compare

Add Carthage support

Improved the Align enumeration

25 Aug 00:36

Choose a tag to compare

Replace the unique Align enumeration by 3 enumerations:

  • AlignContent
  • AlignItems
  • AlignSelf

They all have different options, which make the API cleaner.

Plus:

  • Removed the overflow() method for now.

addContainer() renamed addItem(), markDirty()

24 Aug 12:27

Choose a tag to compare

  • Add missing markDirty() method
  • ⚠️ 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

Initial official release

24 Aug 12:27

Choose a tag to compare

  • Initial official release.
  • Add unit tests

Initial beta release

24 Aug 12:28

Choose a tag to compare

0.1.1

Update doc + pod version