diff options
Diffstat (limited to 'Map/Presentation/Preferences/EditorPreferencesView.swift')
| -rw-r--r-- | Map/Presentation/Preferences/EditorPreferencesView.swift | 8 |
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) } |