diff --git a/ios-app/ZettelgardenShared/Views/Tasks/CreateTaskView.swift b/ios-app/ZettelgardenShared/Views/Tasks/CreateTaskView.swift index c6fe3a17..1d607fd0 100644 --- a/ios-app/ZettelgardenShared/Views/Tasks/CreateTaskView.swift +++ b/ios-app/ZettelgardenShared/Views/Tasks/CreateTaskView.swift @@ -34,6 +34,12 @@ public struct CreateTaskView: View { selectedCard = nil } + public func selectTag(_ tagName: String) { + newTask.title = newTask.title + " " + tagName + showAddTagsSheet = false + + } + public var body: some View { VStack { Text(message) @@ -93,6 +99,10 @@ public struct CreateTaskView: View { ) .presentationDetents([.medium, .large]) } + .sheet(isPresented: $showAddTagsSheet) { + AddTagMenuView(onSelect: selectTag) + .presentationDetents([.medium, .large]) + } }