[YogaKit] support macOS.

This commit is contained in:
vvveiii
2020-08-13 21:44:57 +08:00
parent 0d339b6754
commit 8608c92816
22 changed files with 1289 additions and 32 deletions

View File

@@ -5,7 +5,14 @@
* LICENSE file in the root directory of this source tree.
*/
#import <TargetConditionals.h>
#if TARGET_OS_OSX
#import <AppKit/AppKit.h>
#define UIView NSView
#else
#import <UIKit/UIKit.h>
#endif
#import <yoga/YGEnums.h>
#import <yoga/YGMacros.h>
#import <yoga/Yoga.h>