mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-29 17:23:47 +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
23 lines
561 B
Swift
23 lines
561 B
Swift
|
|
@objc(MWMDownloaderNoResultsEmbedViewController)
|
|
final class DownloaderNoResultsEmbed: UINavigationController {
|
|
|
|
@objc(MWMDownloaderNoResultsScreen)
|
|
enum Screen: Int {
|
|
|
|
case noMaps
|
|
case noSearchResults
|
|
}
|
|
|
|
@objc var screen = Screen.noMaps {
|
|
didSet {
|
|
let controller: MWMViewController
|
|
switch screen {
|
|
case .noMaps: controller = MWMNoMapsViewController.controller()
|
|
case .noSearchResults: controller = SearchNoResultsViewController.controller
|
|
}
|
|
setViewControllers([controller], animated: false)
|
|
}
|
|
}
|
|
}
|