forked from organicmaps/organicmaps
[iphonex] Clang-format.
This commit is contained in:
parent
fd2b8e7d9d
commit
ee7cdaa3be
2 changed files with 4 additions and 2 deletions
|
@ -68,7 +68,8 @@ extern NSString * const kBookmarkCategoryDeletedNotification =
|
|||
if (@available(iOS 11.0, *))
|
||||
{
|
||||
UIEdgeInsets const safeAreaInsets = tableView.safeAreaInsets;
|
||||
offset = max(max(safeAreaInsets.top, safeAreaInsets.bottom), max(safeAreaInsets.left, safeAreaInsets.right));
|
||||
offset = max(max(safeAreaInsets.top, safeAreaInsets.bottom),
|
||||
max(safeAreaInsets.left, safeAreaInsets.right));
|
||||
}
|
||||
label.bounds = CGRectInset(rect, offset, offset);
|
||||
[label sizeToIntegralFit];
|
||||
|
|
|
@ -361,7 +361,8 @@ extern NSString * const kAlohalyticsTapEventKey;
|
|||
if (@available(iOS 11.0, *))
|
||||
bottomAnchor = self.superview.safeAreaLayoutGuide.bottomAnchor;
|
||||
self.alpha = visible ? 1 : 0;
|
||||
self.visibleConstraint = [bottomAnchor constraintEqualToAnchor:visible ? self.bottomAnchor : self.topAnchor];
|
||||
self.visibleConstraint =
|
||||
[bottomAnchor constraintEqualToAnchor:visible ? self.bottomAnchor : self.topAnchor];
|
||||
self.visibleConstraint.active = YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue