[iphonex] Clang-format.

This commit is contained in:
Ilya Grechuhin 2017-12-26 18:39:58 +03:00 committed by Roman Kuznetsov
parent fd2b8e7d9d
commit ee7cdaa3be
2 changed files with 4 additions and 2 deletions

View file

@ -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];

View file

@ -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;
}