Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
|
|
@ -0,0 +1,13 @@
|
|||
@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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue