mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 13:03:54 +00:00
[ios] Add UI for avoiding paved roads
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
90c12003bd
commit
8b4eab3444
@@ -388,6 +388,21 @@ import AVFoundation
|
||||
}
|
||||
|
||||
|
||||
/// If paved roads should be avoided during routing
|
||||
@objc static var shouldAvoidPavedRoadsWhileRouting: Bool {
|
||||
get {
|
||||
return RoutingOptions().avoidPaved
|
||||
}
|
||||
set {
|
||||
let routingOptions = RoutingOptions()
|
||||
routingOptions.avoidPaved = newValue
|
||||
routingOptions.save()
|
||||
|
||||
NotificationCenter.default.post(name: routingOptionsChangedNotificationName, object: nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// If ferries should be avoided during routing
|
||||
@objc static var shouldAvoidFerriesWhileRouting: Bool {
|
||||
get {
|
||||
|
||||
Reference in New Issue
Block a user