File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,13 @@ - (void)didMoveToSuperview
27
27
{
28
28
29
29
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */
30
- // Avoid the home pill (in portrait mode) and notch (in landscape mode) on iPhoneX.
30
+ // Avoid the home pill (in portrait mode)
31
+ // TODO: Support rotation, anchor to left and right without breaking frame x coordinate (T27974328).
31
32
if (@available (iOS 11.0 , *)) {
32
33
if (self.window ) {
33
34
[_safeAreaContainer.bottomAnchor
34
35
constraintLessThanOrEqualToSystemSpacingBelowAnchor: self .window.safeAreaLayoutGuide.bottomAnchor
35
36
multiplier: 1 .0f ].active = YES ;
36
- [_safeAreaContainer.leftAnchor
37
- constraintGreaterThanOrEqualToSystemSpacingAfterAnchor: self .window.safeAreaLayoutGuide.leftAnchor
38
- multiplier: 1 .0f ].active = YES ;
39
- [_safeAreaContainer.rightAnchor
40
- constraintLessThanOrEqualToSystemSpacingAfterAnchor: self .window.safeAreaLayoutGuide.rightAnchor
41
- multiplier: 1 .0f ].active = YES ;
42
37
}
43
38
}
44
39
#endif
You can’t perform that action at this time.
0 commit comments