[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:
Kiryl Kaveryn 2025-01-09 16:57:11 +04:00
parent 9ada5eeb6b
commit 0bb11f992a

View file

@ -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