[iOS] Added restore state on bottom tabbar

https://jira.mail.ru/browse/MAPSME-15321
This commit is contained in:
Alexander Boriskov 2020-11-30 13:36:25 +03:00 committed by Alexander Boriskov
parent ba8dfaaeb9
commit f8e7f66813

View file

@ -33,10 +33,13 @@ class BottomMenuInteractor {
extension BottomMenuInteractor: BottomMenuInteractorProtocol {
func close() {
if controlsManager?.guidesNavigationBarHidden == false {
controlsManager?.menuState = .inactive
guard let controlsManager = controlsManager else {
fatalError()
}
if controlsManager.guidesNavigationBarHidden == false {
controlsManager.menuState = .inactive
} else {
controlsManager?.menuState = .hidden
controlsManager.menuState = controlsManager.menuRestoreState
}
}