Files
comaps/iphone/Maps/Bridging/Controls.swift
Yannik Bloscheck bff4b2348a [ios] WIP: Switching main/map buttons to SwiftUI
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
2025-11-07 21:07:34 +01:00

13 lines
657 B
Swift

extension Controls {
@objc static let changeChangeTrackRecordingNotificationName: Notification.Name = Notification.Name(rawValue: "ChangeTrackRecording")
/// The notification name for switching position mode
@objc static let switchPositionModeNotificationName: Notification.Name = Notification.Name(rawValue: "SwitchPositionMode")
@objc static let changeVisibilityMainButtonsNotificationName: Notification.Name = Notification.Name(rawValue: "ChangeVisibilityMainButtons")
static var positionMode: MapPositionButton.Mode {
return MapPositionButton.Mode(rawValue: Controls.positionModeRawValue()) ?? .locate
}
}