Files
yoga/YogaKit
Martin Kralik 849de89a58 support flexible top container
Summary:
The main container that gets called `applyLayoutPreservingOrigin:` is using its size as a fixed bounding box.
In some cases it's preferrable to let it accomodate its contents.

This diffs extends `applyLayoutPreservingOrigin:` by adding an additional parameter which can be used to sepecify whether width and/or height are fixed or flexible.

Feel free to suggest better names than `YGDimensionFlexibility` & co.
Let me know if you prefet to kill the API without flexiblity specifier - I'll codemod everything then.

Reviewed By: dshahidehpour

Differential Revision: D4929702

fbshipit-source-id: f128f244140b4a54d8ce3b3f4edddbb9756f8fdf
2017-04-23 17:26:50 -07:00
..
2017-04-23 17:26:50 -07:00
2017-04-23 17:26:50 -07:00
2017-01-27 10:09:48 -08:00
2017-03-01 20:42:23 -08:00
2017-03-13 09:58:09 -07:00

YogaKit

CocoaPods Platform Languages

Installation

YogaKit is available to install via CocoaPods.

pod 'YogaKit', '~> 1.3'

Getting Started

Checkout the docs here.

We also have a sample project. To try it out, clone this repo and open YogaKitSample.xcodeproj in the YogaKitSample directory.

Contributing

We welcome all pull-requests! At Facebook we sync the open source version of YogaKit daily, so we're always testing the latest changes.

See the CONTRIBUTING.md file for how to help out.