forked from organicmaps/organicmaps
[iphonex] [ios] Fixed downloader header layout.
This commit is contained in:
parent
a083d22f4f
commit
addf2eb0e2
1 changed files with 4 additions and 1 deletions
|
@ -15,7 +15,10 @@
|
|||
|
||||
- (void)drawTextInRect:(CGRect)rect
|
||||
{
|
||||
[super drawTextInRect:UIEdgeInsetsInsetRect(rect, {.left = 16})];
|
||||
rect = UIEdgeInsetsInsetRect(rect, {.left = 16});
|
||||
if (@available(iOS 11.0, *))
|
||||
rect = UIEdgeInsetsInsetRect(rect, self.safeAreaInsets);
|
||||
[super drawTextInRect:rect];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Reference in a new issue