From f39005c1187e29f40f44d1023bbb7e302066f1b1 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 3 Jan 2024 09:16:24 +0100 Subject: [PATCH] Timeline: Tag heeader now tappable --- .../Sources/Status/Row/Subviews/StatusRowTagView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowTagView.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowTagView.swift index 9dd83916..f67a21bb 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowTagView.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowTagView.swift @@ -4,6 +4,8 @@ import SwiftUI struct StatusRowTagView: View { @Environment(CurrentAccount.self) private var currentAccount + @Environment(RouterPath.self) private var routerPath + @Environment(\.isHomeTimeline) private var isHomeTimeline let viewModel: StatusRowViewModel @@ -17,6 +19,9 @@ struct StatusRowTagView: View { .font(.scaledFootnote) .foregroundStyle(.secondary) .fontWeight(.semibold) + .onTapGesture { + routerPath.navigate(to: .hashTag(tag: tag.title, account: nil)) + } } } }