From 8d7b943d703e7c65d389f9923558b5a423eedde5 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 12 Apr 2023 17:43:53 +0800 Subject: [PATCH] Always present the Notes view in a NavigationView --- .../Views/WebReader/WebReaderContainer.swift | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift index 3751f01c1..1dea287ed 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift @@ -462,17 +462,19 @@ struct WebReaderContainerView: View { } #endif .sheet(isPresented: $showHighlightAnnotationModal) { - HighlightAnnotationSheet( - annotation: $annotation, - onSave: { - annotationSaveTransactionID = UUID() - }, - onCancel: { - showHighlightAnnotationModal = false - }, - errorAlertMessage: $errorAlertMessage, - showErrorAlertMessage: $showErrorAlertMessage - ) + NavigationView { + HighlightAnnotationSheet( + annotation: $annotation, + onSave: { + annotationSaveTransactionID = UUID() + }, + onCancel: { + showHighlightAnnotationModal = false + }, + errorAlertMessage: $errorAlertMessage, + showErrorAlertMessage: $showErrorAlertMessage + ) + } } .sheet(isPresented: $showHighlightLabelsModal) { if let highlight = Highlight.lookup(byID: self.annotation, inContext: self.dataService.viewContext) {