Fix crash when tapping My Profile tab before view is loaded

Closes #352
This commit is contained in:
Shadowfacts 2023-02-05 11:09:08 -05:00
parent 985eb24e88
commit 825424cfba
1 changed files with 2 additions and 0 deletions

View File

@ -335,12 +335,14 @@ extension ProfileViewController: TabbedPageViewController {
extension ProfileViewController: TabBarScrollableViewController {
func tabBarScrollToTop() {
guard isViewLoaded else { return }
currentViewController.tabBarScrollToTop()
}
}
extension ProfileViewController: StatusBarTappableViewController {
func handleStatusBarTapped(xPosition: CGFloat) -> StatusBarTapActionResult {
guard isViewLoaded else { return .stop }
return currentViewController.handleStatusBarTapped(xPosition: xPosition)
}
}