mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 06:03:45 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
38 lines
810 B
Swift
38 lines
810 B
Swift
protocol BottomTabBarPresenterProtocol: AnyObject {
|
|
func configure()
|
|
func onSearchButtonPressed()
|
|
func onHelpButtonPressed(withBadge: Bool)
|
|
func onBookmarksButtonPressed()
|
|
func onMenuButtonPressed()
|
|
}
|
|
|
|
class BottomTabBarPresenter: NSObject {
|
|
private let interactor: BottomTabBarInteractorProtocol
|
|
|
|
init(interactor: BottomTabBarInteractorProtocol) {
|
|
self.interactor = interactor
|
|
}
|
|
}
|
|
|
|
extension BottomTabBarPresenter: BottomTabBarPresenterProtocol {
|
|
func configure() {
|
|
}
|
|
|
|
func onSearchButtonPressed() {
|
|
interactor.openSearch()
|
|
}
|
|
|
|
func onHelpButtonPressed(withBadge: Bool) {
|
|
withBadge ? interactor.openFaq() : interactor.openHelp()
|
|
}
|
|
|
|
func onBookmarksButtonPressed() {
|
|
interactor.openBookmarks()
|
|
}
|
|
|
|
func onMenuButtonPressed() {
|
|
interactor.openMenu()
|
|
}
|
|
}
|
|
|