Skip to content

Commit f10195f

Browse files
[Xcode 15] Silence warning with mismatched NSView.clipsToBounds property (#1864)
* Make property match * Update comment
1 parent 0daf75a commit f10195f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

React/Base/RCTUIKit.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ CGPathRef UIBezierPathCreateCGPathRef(UIBezierPath *path);
394394

395395
- (void)setNeedsDisplay;
396396

397-
// An override of an undocumented API that controls the layer's masksToBounds property
398-
@property (nonatomic) BOOL clipsToBounds;
397+
// 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
398+
@property BOOL clipsToBounds;
399399
@property (nonatomic, copy) NSColor *backgroundColor;
400400
@property (nonatomic) CGAffineTransform transform;
401401

@@ -589,7 +589,8 @@ typedef UIImageView RCTUIImageView;
589589
#else
590590
@interface RCTUIImageView : NSImageView
591591
NS_ASSUME_NONNULL_BEGIN
592-
@property (nonatomic, assign) BOOL clipsToBounds;
592+
// 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
593+
@property (assign) BOOL clipsToBounds;
593594
@property (nonatomic, strong) RCTUIColor *tintColor;
594595
@property (nonatomic, assign) UIViewContentMode contentMode;
595596
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)