From 005c2048af141e3658a170c283dd41bd4fb5cdcb Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 9 Jul 2025 08:54:22 +0200 Subject: Make soft-wrap configurable. --- Map/Presentation/MapEditor.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Map/Presentation/MapEditor.swift') diff --git a/Map/Presentation/MapEditor.swift b/Map/Presentation/MapEditor.swift index 0f8f24e..c8ce5cd 100644 --- a/Map/Presentation/MapEditor.swift +++ b/Map/Presentation/MapEditor.swift @@ -32,6 +32,8 @@ struct MapEditor: View { @AppStorage("customEditorFontName") var customEditorFontName: String = UserPreferences.Defaults .customEditorFontName @AppStorage("editorFontSize") var editorFontSize: Double = UserPreferences.Defaults.editorFontSize + @AppStorage("softWrapLines") var softWrapLines: Bool = UserPreferences.Defaults + .softWrapLines let zoomRange = Constants.kMinZoom...Constants.kMaxZoom @AppStorage("zoom") var zoom = UserPreferences.Defaults.zoom @@ -110,7 +112,7 @@ struct MapEditor: View { highlightRanges: results, selectedRange: selectedTerm ) - .id("\(useCustomEditorFont)-\(customEditorFontName)-\(editorFontSize)") + .id("\(useCustomEditorFont)-\(customEditorFontName)-\(editorFontSize)-\(softWrapLines)") .background(Color.Theme.UI.background) .foregroundColor(Color.Theme.UI.foreground) .frame(minHeight: 96.0) -- cgit