Skip to content

Commit 36c8b20

Browse files
committed
Fix header appearing on profile when switching to landscape
1 parent 663ba99 commit 36c8b20

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

HabitRPG/UI/Social/UserProfileViewController.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,13 @@ class UserProfileViewController: BaseHostingViewController<ProfilePage> {
719719
}
720720
}
721721

722+
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
723+
super.viewWillTransition(to: size, with: coordinator)
724+
coordinator.animate(alongsideTransition: { _ in
725+
self.topHeaderCoordinator?.showHideHeader(show: false, animated: false)
726+
})
727+
}
728+
722729
override func applyTheme(theme: any Theme) {
723730
super.applyTheme(theme: theme)
724731
navigationItem.leftBarButtonItem?.tintColor = theme.fixedTintColor

0 commit comments

Comments
 (0)