@@ -47,28 +47,21 @@ - (NSString *)description
47
47
if (superDescription.length > 0 && [superDescription characterAtIndex: superDescription.length - 1 ] == ' >' ) {
48
48
superDescription = [superDescription substringToIndex: superDescription.length - 1 ];
49
49
}
50
-
50
+
51
51
#if TARGET_OS_IPHONE
52
52
NSString *providerViewSafeAreaInsetsString = NSStringFromUIEdgeInsets(_providerView.safeAreaInsets );
53
53
NSString *currentSafeAreaInsetsString = NSStringFromUIEdgeInsets(_currentSafeAreaInsets);
54
54
#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];
72
65
#endif
73
66
74
67
return [NSString stringWithFormat: @" %@ ; RNCSafeAreaInsets = %@ ; appliedRNCSafeAreaInsets = %@ >" ,
0 commit comments