From 7de5180eacb7288ac614435b198926fbaf54cbb4 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 22 Oct 2024 23:26:05 -0600 Subject: apply original image preference --- iTexSnip/Views/MenuBarView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iTexSnip/Views/MenuBarView.swift b/iTexSnip/Views/MenuBarView.swift index ba27840..542f72b 100644 --- a/iTexSnip/Views/MenuBarView.swift +++ b/iTexSnip/Views/MenuBarView.swift @@ -39,6 +39,7 @@ struct MenuBarView: View { @State var model: TexTellerModel? @Query(sort: \ImageSnippet.dateModifed, order: .reverse) var snippets: [ImageSnippet] @AppStorage("loadModelOnStart") var loadModelOnStart: Bool = true + @AppStorage("showOriginalImage") var showOriginalImage: Bool = false let columns = [ GridItem(.flexible(), spacing: 16), @@ -87,7 +88,9 @@ struct MenuBarView: View { ScrollView { LazyVGrid(columns: columns, spacing: 16) { ForEach(snippets) { snippet in - NavigationLink(destination: DetailedSnippetView(snippet: snippet)) { + NavigationLink( + destination: DetailedSnippetView(showOriginal: showOriginalImage, snippet: snippet) + ) { SnippetView(snippet: snippet, deleteSnippet: deleteSnippet) .frame(height: 200) .padding() -- cgit v1.2.3