Skip to content

Commit

Permalink
fix header placement on new iphones
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Oct 24, 2024
1 parent e334aef commit aafd43a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HabitRPG/TopHeaderNavigationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ class TopHeaderViewController: UINavigationController, TopHeaderNavigationContro
if self.shouldHideTopHeader {
return 0
}
if statusBarHeight == 59 {
// iphones with dynamic island need this for some reason
if statusBarHeight == 59 || statusBarHeight == 62 {
return topHeaderHeight + 10
}
return self.topHeaderHeight
Expand Down

0 comments on commit aafd43a

Please sign in to comment.