From 4c5c47c746c3e2d46c63edcc5c1c53185318f16f Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 7 Apr 2023 22:38:29 +0800 Subject: [PATCH] Open notes editor in a NavigationView --- .../Views/Highlights/HighlightsListCard.swift | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListCard.swift b/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListCard.swift index 42cc66a7e..d0a5bd71b 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListCard.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListCard.swift @@ -181,19 +181,21 @@ noteSection } .sheet(isPresented: $showAnnotationModal) { - HighlightAnnotationSheet( - annotation: $annotation, - onSave: { - onSaveAnnotation(annotation) - showAnnotationModal = false - hasHighlightMutations = true - }, - onCancel: { - showAnnotationModal = false - }, - errorAlertMessage: $errorAlertMessage, - showErrorAlertMessage: $showErrorAlertMessage - ) + NavigationView { + HighlightAnnotationSheet( + annotation: $annotation, + onSave: { + onSaveAnnotation(annotation) + showAnnotationModal = false + hasHighlightMutations = true + }, + onCancel: { + showAnnotationModal = false + }, + errorAlertMessage: $errorAlertMessage, + showErrorAlertMessage: $showErrorAlertMessage + ) + } } .formSheet(isPresented: $showShareView) { ShareSheet(activityItems: [viewModel.highlightAsMarkdown(item: self.highlightParams)])