Files
yoga/YogaKit
Dustin Shahidehpour 3c9f620c77 BREAKING CHANGE: Computed edge values are no longer returned on concrete properties, fix tests.
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
2017-02-11 08:28:50 -08:00
..
2017-01-27 10:09:48 -08:00
2017-01-27 10:09:48 -08:00

YogaKit

CocoaPods Platform Languages

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.