@@ -64,7 +64,6 @@ UIKIT_STATIC_INLINE CGPathRef UIBezierPathCreateCGPathRef(UIBezierPath *path)
64
64
#define RCTPlatformView UIView
65
65
#define RCTUIView UIView
66
66
#define RCTUIScrollView UIScrollView
67
- #define RCTPlatformWindow UIWindow
68
67
69
68
UIKIT_STATIC_INLINE RCTPlatformView *RCTUIViewHitTestWithEvent (RCTPlatformView *view, CGPoint point, __unused UIEvent *__nullable event)
70
69
{
@@ -218,6 +217,7 @@ typedef NS_ENUM(NSInteger, UIViewContentMode) {
218
217
UIViewContentModeScaleAspectFit = NSViewLayerContentsPlacementScaleProportionallyToFit,
219
218
UIViewContentModeScaleToFill = NSViewLayerContentsPlacementScaleAxesIndependently,
220
219
UIViewContentModeCenter = NSViewLayerContentsPlacementCenter,
220
+ UIViewContentModeTopLeft = NSViewLayerContentsPlacementTopLeft,
221
221
};
222
222
223
223
// UIInterface.h/NSUserInterfaceLayout.h
@@ -378,8 +378,6 @@ CGPathRef UIBezierPathCreateCGPathRef(UIBezierPath *path);
378
378
// UIView
379
379
#define RCTPlatformView NSView
380
380
381
- #define RCTPlatformWindow NSWindow
382
-
383
381
@interface RCTUIView : RCTPlatformView
384
382
385
383
@property (nonatomic , readonly ) BOOL canBecomeFirstResponder;
@@ -410,7 +408,7 @@ CGPathRef UIBezierPathCreateCGPathRef(UIBezierPath *path);
410
408
- (void )sendMouseEventWithBlock : (RCTDirectEventBlock)block
411
409
locationInfo : (NSDictionary *)locationInfo
412
410
modifierFlags : (NSEventModifierFlags )modifierFlags
413
- additionalData : (NSDictionary *)additionalData ;
411
+ additionalData : (NSDictionary * __nullable )additionalData ;
414
412
415
413
// FUTURE: When Xcode 14 is no longer supported (CI is building with Xcode 15), we can remove this override since it's now declared on NSView
416
414
@property BOOL clipsToBounds;
@@ -524,12 +522,12 @@ NS_ASSUME_NONNULL_END
524
522
525
523
#if !TARGET_OS_OSX
526
524
typedef UIApplication RCTUIApplication;
527
- typedef UIWindow RCTUIWindow ;
528
- typedef UIViewController RCTUIViewController ;
525
+ typedef UIWindow RCTPlatformWindow ;
526
+ typedef UIViewController RCTPlatformViewController ;
529
527
#else
530
528
typedef NSApplication RCTUIApplication;
531
- typedef NSWindow RCTUIWindow ;
532
- typedef NSViewController RCTUIViewController ;
529
+ typedef NSWindow RCTPlatformWindow ;
530
+ typedef NSViewController RCTPlatformViewController ;
533
531
#endif
534
532
535
533
//
@@ -660,6 +658,7 @@ typedef void (^RCTUIGraphicsImageDrawingActions)(RCTUIGraphicsImageRendererConte
660
658
661
659
@interface RCTUIGraphicsImageRenderer : NSObject
662
660
661
+ - (instancetype )initWithSize : (CGSize )size ;
663
662
- (instancetype )initWithSize : (CGSize )size format : (RCTUIGraphicsImageRendererFormat *)format ;
664
663
- (NSImage *)imageWithActions : (NS_NOESCAPE RCTUIGraphicsImageDrawingActions)actions ;
665
664
0 commit comments