Skip to content

Commit

Permalink
Raise macOS deployment target to 10.15
Browse files Browse the repository at this point in the history
  • Loading branch information
shirakaba committed Jul 23, 2024
1 parent f3f9160 commit 461ec2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions ios/RNCSafeAreaContext.mm
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@ - (NSDictionary *)getConstants
#if TARGET_OS_IPHONE
UIEdgeInsets safeAreaInsets = window.safeAreaInsets;
#elif TARGET_OS_OSX
NSEdgeInsets safeAreaInsets;
if (@available(macOS 10.10, *)) {
safeAreaInsets = NSEdgeInsetsZero;
} else {
safeAreaInsets = NSEdgeInsetsMake(0, 0, 0, 0);
}
NSEdgeInsets safeAreaInsets = NSEdgeInsetsZero;
#endif

constants = @{
Expand Down
4 changes: 1 addition & 3 deletions ios/RNCSafeAreaProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ - (void)invalidateSafeAreaInsets
NSEdgeInsets safeAreaInsets;
if (@available(macOS 11.0, *)) {
safeAreaInsets = self.safeAreaInsets;
} else if (@available(macOS 10.10, *)) {
safeAreaInsets = NSEdgeInsetsZero;
} else {
safeAreaInsets = NSEdgeInsetsMake(0, 0, 0, 0);
safeAreaInsets = NSEdgeInsetsZero;
}
#endif
CGRect frame = [self convertRect:self.bounds toView:RNCParentViewController(self).view];
Expand Down

0 comments on commit 461ec2a

Please sign in to comment.