forked from organicmaps/organicmaps
[ios] refactor ElevationProfileViewController to handle live ele info updates
1. remove a stroryboard and implement VC and ElevationProfileDescriptionCell programmatically 2. move the description collection view over the chart 3. remove some unused code 4. add isChartViewInfoHidden to show/hide the info view and enable/disable user interation (will be used for the track recording) Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
parent
9ada5eeb6b
commit
0bb11f992a
1 changed files with 5 additions and 0 deletions
|
@ -85,6 +85,11 @@ extension ElevationProfilePresenter: ElevationProfilePresenterProtocol {
|
|||
view?.setChartData(ChartPresentationData(chartData, formatter: formatter))
|
||||
view?.reloadDescription()
|
||||
|
||||
guard !profileData.isTrackRecording else {
|
||||
view?.isChartViewInfoHidden = true
|
||||
return
|
||||
}
|
||||
|
||||
view?.setActivePoint(profileData.activePoint)
|
||||
view?.setMyPosition(profileData.myPosition)
|
||||
bookmarkManager.setElevationActivePointChanged(profileData.trackId) { [weak self] distance in
|
||||
|
|
Loading…
Add table
Reference in a new issue