Fix crash when tapping My Profile tab before view is loaded
Closes #352
This commit is contained in:
parent
985eb24e88
commit
825424cfba
|
@ -335,12 +335,14 @@ extension ProfileViewController: TabbedPageViewController {
|
||||||
|
|
||||||
extension ProfileViewController: TabBarScrollableViewController {
|
extension ProfileViewController: TabBarScrollableViewController {
|
||||||
func tabBarScrollToTop() {
|
func tabBarScrollToTop() {
|
||||||
|
guard isViewLoaded else { return }
|
||||||
currentViewController.tabBarScrollToTop()
|
currentViewController.tabBarScrollToTop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension ProfileViewController: StatusBarTappableViewController {
|
extension ProfileViewController: StatusBarTappableViewController {
|
||||||
func handleStatusBarTapped(xPosition: CGFloat) -> StatusBarTapActionResult {
|
func handleStatusBarTapped(xPosition: CGFloat) -> StatusBarTapActionResult {
|
||||||
|
guard isViewLoaded else { return .stop }
|
||||||
return currentViewController.handleStatusBarTapped(xPosition: xPosition)
|
return currentViewController.handleStatusBarTapped(xPosition: xPosition)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue