Files
yoga/YogaKit
Dustin Shahidehpour 76fbd628e1 Use correct rounding function when rounding pixels.
Summary: While debugging something at Instagram, I kept seeing a UILabel be truncated when it clearly had enough room to display all its' text. What I realized is that during our pixel rounding, we were losing precision because we were using the incorrect rounding function for floats. Changing from `round()` (which is for doubles) to `roundf()` fixed it.

Reviewed By: amonshiz

Differential Revision: D4549069

fbshipit-source-id: 78a1bb33e315e7c066b7fb625b1f5a28def76515
2017-02-11 19:56:08 -08:00
..
2017-01-27 10:09:48 -08:00
2017-01-27 10:09:48 -08:00
2017-02-11 14:12:51 -08:00

YogaKit

CocoaPods Platform Languages

Installation

YogaKit is available to install via CocoaPods.

pod 'YogaKit', '~> 1.1'

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.