Skip to content

Commit

Permalink
ios-app: hook up adding tags to tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSavage committed Oct 8, 2024
1 parent b899f81 commit e0d656b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ios-app/ZettelgardenShared/Views/Tasks/CreateTaskView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -93,6 +99,10 @@ public struct CreateTaskView: View {
)
.presentationDetents([.medium, .large])
}
.sheet(isPresented: $showAddTagsSheet) {
AddTagMenuView(onSelect: selectTag)
.presentationDetents([.medium, .large])
}

}

Expand Down

0 comments on commit e0d656b

Please sign in to comment.