mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 21:33:59 +00:00
[ios] Add UI for avoiding steps
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
jeanbaptisteC
parent
dd3b6faa42
commit
37a518cb9b
@@ -407,6 +407,21 @@ import Combine
|
||||
}
|
||||
|
||||
|
||||
/// If steps should be avoided during routing
|
||||
@objc static var shouldAvoidStepsWhileRouting: Bool {
|
||||
get {
|
||||
return RoutingOptions().avoidSteps
|
||||
}
|
||||
set {
|
||||
let routingOptions = RoutingOptions()
|
||||
routingOptions.avoidSteps = newValue
|
||||
routingOptions.save()
|
||||
|
||||
NotificationCenter.default.post(name: routingOptionsChangedNotificationName, object: nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// MARK: Methods
|
||||
|
||||
|
||||
Reference in New Issue
Block a user