|
@@ -40,7 +40,7 @@ struct TaskView: View {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if showTags {
|
|
|
|
|
|
|
+ if showTags || !(hideTags || task.tags.isEmpty) {
|
|
|
HStack {
|
|
HStack {
|
|
|
TagBarView(tags: $task.tags)
|
|
TagBarView(tags: $task.tags)
|
|
|
.font(.footnote)
|
|
.font(.footnote)
|
|
@@ -49,7 +49,7 @@ struct TaskView: View {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if showNotes {
|
|
|
|
|
|
|
+ if showNotes || !(hideNotes || task.notes.isEmpty) {
|
|
|
HStack {
|
|
HStack {
|
|
|
TextField("Notes", text: $task.notes)
|
|
TextField("Notes", text: $task.notes)
|
|
|
.font(.footnote)
|
|
.font(.footnote)
|
|
@@ -67,8 +67,8 @@ struct TaskView: View {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}.onHover { yes in
|
|
}.onHover { yes in
|
|
|
- showTags = yes || !(hideTags || task.tags.isEmpty)
|
|
|
|
|
- showNotes = yes || !(hideNotes || task.notes.isEmpty)
|
|
|
|
|
|
|
+ showTags = yes
|
|
|
|
|
+ showNotes = yes
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|