forked from organicmaps/organicmaps
[iphonex] [ios] Updated route preview layout.
This commit is contained in:
parent
aece39240e
commit
c0c96f1b88
1 changed files with 2 additions and 6 deletions
|
@ -25,10 +25,10 @@
|
|||
|
||||
NSLayoutXAxisAnchor * backLeadingAnchor = sv.leadingAnchor;
|
||||
if (@available(iOS 11.0, *))
|
||||
{
|
||||
backLeadingAnchor = sv.safeAreaLayoutGuide.leadingAnchor;
|
||||
}
|
||||
[self.backButton.leadingAnchor constraintEqualToAnchor:backLeadingAnchor].active = YES;
|
||||
|
||||
[sv layoutIfNeeded];
|
||||
}
|
||||
|
||||
- (void)setIsVisible:(BOOL)isVisible
|
||||
|
@ -43,13 +43,9 @@
|
|||
if (isVisible)
|
||||
{
|
||||
if (@available(iOS 11.0, *))
|
||||
{
|
||||
topAnchor = sv.safeAreaLayoutGuide.topAnchor;
|
||||
}
|
||||
else
|
||||
{
|
||||
constant = statusBarHeight();
|
||||
}
|
||||
}
|
||||
self.verticalConstraint = [selfAnchor constraintEqualToAnchor:topAnchor constant:constant];
|
||||
self.verticalConstraint.active = YES;
|
||||
|
|
Loading…
Add table
Reference in a new issue