Skip to content

Commit

Permalink
Update Application/Sources/UI/Controllers/TabBarController.m
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Défago <[email protected]>
  • Loading branch information
mutaben and defagos authored Nov 19, 2024
1 parent 91fc63d commit 06ff965
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Application/Sources/UI/Controllers/TabBarController.m
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,9 @@ - (void)updateLayoutAnimated:(BOOL)animated
}

self.playerHeightConstraint.active = YES;
if (self.traitCollection.horizontalSizeClass == UIUserInterfaceSizeClassRegular) {
self.playerBottomToViewConstraint.active = NO;
self.playerBottomToSafeAreaConstraint.active = YES;
} else {
self.playerBottomToViewConstraint.active = YES;
self.playerBottomToSafeAreaConstraint.active = NO;
}
BOOL isRegular = (self.traitCollection.horizontalSizeClass == UIUserInterfaceSizeClassRegular);
self.playerBottomToViewConstraint.active = ! isRegular;
self.playerBottomToSafeAreaConstraint.active = isRegular;

CALayer *miniPlayerLayer = self.miniPlayerView.layer;
if (UIAccessibilityIsVoiceOverRunning()) {
Expand Down

0 comments on commit 06ff965

Please sign in to comment.