mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-28 08:53:37 +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
16 lines
677 B
Swift
16 lines
677 B
Swift
import CoreApi
|
|
|
|
class ElevationProfileBuilder {
|
|
static func build(trackInfo: TrackInfo,
|
|
elevationProfileData: ElevationProfileData?,
|
|
delegate: ElevationProfileViewControllerDelegate?) -> ElevationProfileViewController {
|
|
let viewController = ElevationProfileViewController();
|
|
let presenter = ElevationProfilePresenter(view: viewController,
|
|
trackInfo: trackInfo,
|
|
profileData: elevationProfileData,
|
|
delegate: delegate)
|
|
viewController.presenter = presenter
|
|
return viewController
|
|
}
|
|
}
|