mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 06:33:42 +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
14 lines
702 B
Swift
14 lines
702 B
Swift
@objc class ElevationDetailsBuilder: NSObject {
|
|
@objc static func build(data: PlacePageData) -> UIViewController {
|
|
guard let elevationProfileData = data.trackData?.elevationProfileData else {
|
|
LOG(.critical, "Elevation profile data should not be nil when building elevation details")
|
|
fatalError()
|
|
}
|
|
let viewController = ElevationDetailsViewController(nibName: toString(ElevationDetailsViewController.self), bundle: nil)
|
|
let router = ElevationDetailsRouter(viewController: viewController)
|
|
let presenter = ElevationDetailsPresenter(view: viewController, router: router, data: elevationProfileData)
|
|
viewController.presenter = presenter
|
|
return viewController
|
|
}
|
|
}
|