File tree 1 file changed +18
-6
lines changed
1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,13 @@ + (UIEdgeInsets) buildSafeInsetsForController:(UIViewController *)ctrl andMode:(
95
95
result = deviceMargins;
96
96
if (DeviceInfo.shared .hasCorners &&
97
97
UIDevice.currentDevice .userInterfaceIdiom == UIUserInterfaceIdiomPad) {
98
- result.top = 16 ;
99
- result.bottom = 16 ;
98
+ if ([DeviceInfo.shared.marketingName containsString: @" M4" ]) {
99
+ result.top = 25 ;
100
+ result.bottom = 25 ;
101
+ } else {
102
+ result.top = 16 ;
103
+ result.bottom = 16 ;
104
+ }
100
105
}
101
106
102
107
break ;
@@ -108,10 +113,17 @@ + (UIEdgeInsets) buildSafeInsetsForController:(UIViewController *)ctrl andMode:(
108
113
}
109
114
110
115
if (!deviceInfo.hasNotch ) {
111
- result.top = 5 ;
112
- result.left = 5 ;
113
- result.right = MAX (deviceMargins.right , 5 );
114
- result.bottom = fullScreen ? 5 : 10 ;
116
+ if ([DeviceInfo.shared.marketingName containsString: @" M4" ]) {
117
+ result.top = 8 ;
118
+ result.left = 8 ;
119
+ result.right = MAX (deviceMargins.right , 8 );
120
+ result.bottom = fullScreen ? 8 : 10 ;
121
+ } else {
122
+ result.top = 5 ;
123
+ result.left = 5 ;
124
+ result.right = MAX (deviceMargins.right , 5 );
125
+ result.bottom = fullScreen ? 5 : 10 ;
126
+ }
115
127
break ;
116
128
}
117
129
You can’t perform that action at this time.
0 commit comments