Summary: Now that the Yoga library supports percentage values, the results returned from it's API were changed. `YGNodeStyleGetPadding` returns the explicit value that you set, whereas `YGNodeLayoutGetPadding` returns the computed value. Since we are planning to build support for percentages, I'm modifying our API so that it strictly returns the value that was set. As a result: ``` view.yoga.margin = 10; // view.yoga.margin == 10 // view.yoga.marginLeftWidth == 0 // view.yoga.marginRightWidth == 0 // etc. ``` Reviewed By: emilsjolander Differential Revision: D4543471 fbshipit-source-id: a731025cd4b47e9f1a559c766494fc5a259291ae
YogaKit
Installation
YogaKit is available to install via CocoaPods.
pod 'YogaKit', '~> 1.0.2'
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 file for how to help out.