|
@@ -19,10 +19,9 @@ struct TagBarView: View {
|
|
|
var body: some View {
|
|
var body: some View {
|
|
|
HStack {
|
|
HStack {
|
|
|
ForEach($task.tags) { tag in
|
|
ForEach($task.tags) { tag in
|
|
|
- let url = allHints.filter({ $0.matches(tag.wrappedValue) })
|
|
|
|
|
- .first?.url(tag.wrappedValue)
|
|
|
|
|
- if url != nil {
|
|
|
|
|
- Link(destination: url!) {
|
|
|
|
|
|
|
+ if let url = allHints.filter({ $0.matches(tag.wrappedValue) })
|
|
|
|
|
+ .first?.url(tag.wrappedValue) {
|
|
|
|
|
+ Link(destination: url) {
|
|
|
Label("", systemImage: "link")
|
|
Label("", systemImage: "link")
|
|
|
}
|
|
}
|
|
|
.padding(.leading, -8)
|
|
.padding(.leading, -8)
|