Skip to content

Commit

Permalink
Use the safe area layout guide for bottom video controls
Browse files Browse the repository at this point in the history
JIRA Issues: PUBPL-1892
  • Loading branch information
mclaughj authored and Rajul Arora committed Jul 13, 2018
1 parent 0e5758c commit a2f91a4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ - (void)prepareBottomBar
NSDictionary *views = NSDictionaryOfVariableBindings(bottomBar);

[TWTRViewUtil addVisualConstraints:@"H:|[bottomBar]|" views:views];
[TWTRViewUtil addVisualConstraints:@"V:[bottomBar(60)]|" views:views];
[TWTRViewUtil addVisualConstraints:@"V:[bottomBar(60)]" views:views];

if (@available(iOS 11, *)) {
[bottomBar.bottomAnchor constraintEqualToAnchor:self.safeAreaLayoutGuide.bottomAnchor].active = YES;
} else {
[TWTRViewUtil constraintToBottomOfSuperview:bottomBar].active = YES;
}

_bottomBarContainer = bottomBar;

Expand Down

0 comments on commit a2f91a4

Please sign in to comment.