Skip to content

Commit d9e03b1

Browse files
Remove macOS version check
1 parent 4fefc0a commit d9e03b1

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

ios/Fabric/RNCSafeAreaViewComponentView.mm

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,21 @@ - (NSString *)description
4747
if (superDescription.length > 0 && [superDescription characterAtIndex:superDescription.length - 1] == '>') {
4848
superDescription = [superDescription substringToIndex:superDescription.length - 1];
4949
}
50-
50+
5151
#if TARGET_OS_IPHONE
5252
NSString *providerViewSafeAreaInsetsString = NSStringFromUIEdgeInsets(_providerView.safeAreaInsets);
5353
NSString *currentSafeAreaInsetsString = NSStringFromUIEdgeInsets(_currentSafeAreaInsets);
5454
#elif TARGET_OS_OSX
55-
NSString *providerViewSafeAreaInsetsString;
56-
NSString *currentSafeAreaInsetsString;
57-
if (@available(macOS 11.0, *)) {
58-
providerViewSafeAreaInsetsString = [NSString stringWithFormat:@"{%f,%f,%f,%f}",
59-
_providerView.safeAreaInsets.top,
60-
_providerView.safeAreaInsets.left,
61-
_providerView.safeAreaInsets.bottom,
62-
_providerView.safeAreaInsets.right];
63-
currentSafeAreaInsetsString = [NSString stringWithFormat:@"{%f,%f,%f,%f}",
64-
_currentSafeAreaInsets.top,
65-
_currentSafeAreaInsets.left,
66-
_currentSafeAreaInsets.bottom,
67-
_currentSafeAreaInsets.right];
68-
} else {
69-
providerViewSafeAreaInsetsString = @"{0.0,0.0,0.0,0.0}";
70-
currentSafeAreaInsetsString = @"{0.0,0.0,0.0,0.0}";
71-
}
55+
NSString *providerViewSafeAreaInsetsString = [NSString stringWithFormat:@"{%f,%f,%f,%f}",
56+
_providerView.safeAreaInsets.top,
57+
_providerView.safeAreaInsets.left,
58+
_providerView.safeAreaInsets.bottom,
59+
_providerView.safeAreaInsets.right];
60+
NSString *currentSafeAreaInsetsString = [NSString stringWithFormat:@"{%f,%f,%f,%f}",
61+
_currentSafeAreaInsets.top,
62+
_currentSafeAreaInsets.left,
63+
_currentSafeAreaInsets.bottom,
64+
_currentSafeAreaInsets.right];
7265
#endif
7366

7467
return [NSString stringWithFormat:@"%@; RNCSafeAreaInsets = %@; appliedRNCSafeAreaInsets = %@>",

0 commit comments

Comments
 (0)