aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Preferences/EditorPreferencesView.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-11 09:27:49 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-11 09:27:49 +0200
commit8564439356f4bcc3e21b19738eb87b4c0722c623 (patch)
tree1465f4e48be83d255e5c68de804ba940db238bea /Map/Presentation/Preferences/EditorPreferencesView.swift
parentff3619fdf3fce82d95124654a18b66ca3ed380cd (diff)
Add missing vertex detection
Diffstat (limited to 'Map/Presentation/Preferences/EditorPreferencesView.swift')
-rw-r--r--Map/Presentation/Preferences/EditorPreferencesView.swift8
1 files changed, 8 insertions, 0 deletions
diff --git a/Map/Presentation/Preferences/EditorPreferencesView.swift b/Map/Presentation/Preferences/EditorPreferencesView.swift
index c08b03e..98e96f0 100644
--- a/Map/Presentation/Preferences/EditorPreferencesView.swift
+++ b/Map/Presentation/Preferences/EditorPreferencesView.swift
@@ -26,6 +26,9 @@ struct EditorPreferencesView: View {
.editorFontSize
@AppStorage("softWrapLines") private var softWrapLines: Bool = UserPreferences.Defaults
.softWrapLines
+ @AppStorage("highlightMissingComponents") private var highlightMissingComponents: Bool =
+ UserPreferences.Defaults
+ .softWrapLines
var monospacedFonts: [String] {
let fontManager = NSFontManager.shared
@@ -117,6 +120,11 @@ struct EditorPreferencesView: View {
VStack(alignment: .leading, spacing: Dimensions.Spacing.cozy) {
Toggle(
String(localized: "preferences.editor.smart_editor.enabled"), isOn: $useSmartEditor)
+ Toggle(
+ String(localized: "preferences.editor.smart_editor.highlight_missing_components"),
+ isOn: $highlightMissingComponents
+ )
+ .disabled(!useSmartEditor)
}
.frame(maxWidth: .infinity, alignment: .leading)
}