[yoga] Support SPM (Swift Package Manager)

This commit is contained in:
Lvv.me
2021-07-05 21:27:24 +08:00
parent 578d197dd6
commit 02a002f594
4 changed files with 78 additions and 2 deletions

View File

@@ -5,7 +5,15 @@
* 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 "YGLayout.h"
NS_ASSUME_NONNULL_BEGIN