diff options
Diffstat (limited to 'Map/Presentation/MapEditor.swift')
| -rw-r--r-- | Map/Presentation/MapEditor.swift | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Map/Presentation/MapEditor.swift b/Map/Presentation/MapEditor.swift index 4116171..56ac898 100644 --- a/Map/Presentation/MapEditor.swift +++ b/Map/Presentation/MapEditor.swift @@ -23,6 +23,9 @@ struct MapEditor: View { private let changeDebouncer: Debouncer = Debouncer(seconds: 0.05) @AppStorage("viewStyle") var viewStyle: ViewStyle = .horizontal + @AppStorage("useCustomEditorFont") var useCustomEditorFont: Bool = false + @AppStorage("customEditorFontName") var customEditorFontName: String = "Menlo" + @AppStorage("editorFontSize") var editorFontSize: Double = 14 let zoomRange = Constants.kMinZoom...Constants.kMaxZoom @AppStorage("zoom") var zoom = 1.0 @@ -99,6 +102,7 @@ struct MapEditor: View { highlightRanges: results, selectedRange: selectedTerm ) + .id("\(useCustomEditorFont)-\(customEditorFontName)-\(editorFontSize)") .background(Color.Theme.UI.background) .foregroundColor(Color.Theme.UI.foreground) .frame(minHeight: 96.0) |