mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
1. add an new screen (layout) 2. add TR icon for the bottom tabbar 3. share current location from the TR PP 4. refactor TR manager to properly handle state updates and pass them to the LiveActivityManager and PlacePage 5. add init/update with TrackInfo/EleInfo methods to the PlacePageData and PlacePagePreviewData to update the PP state Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
22 lines
723 B
Swift
22 lines
723 B
Swift
final class TrackRecordingButtonArea: AvailableArea {
|
|
override func isAreaAffectingView(_ other: UIView) -> Bool {
|
|
return !other.trackRecordingButtonAreaAffectDirections.isEmpty
|
|
}
|
|
|
|
override func addAffectingView(_ other: UIView) {
|
|
let ov = other.trackRecordingButtonAreaAffectView
|
|
let directions = ov.trackRecordingButtonAreaAffectDirections
|
|
addConstraints(otherView: ov, directions: directions)
|
|
}
|
|
|
|
override func notifyObserver() {
|
|
TrackRecordingButtonViewController.updateAvailableArea(areaFrame)
|
|
}
|
|
}
|
|
|
|
extension UIView {
|
|
@objc var trackRecordingButtonAreaAffectDirections: MWMAvailableAreaAffectDirections { return [] }
|
|
|
|
var trackRecordingButtonAreaAffectView: UIView { return self }
|
|
}
|