Skip to content

Commit 0b13ffc

Browse files
graycreateclaude
andauthored
feat: add tap-to-profile navigation for avatar in feed list (#130)
Add .to modifier to AvatarView in FeedItemView so users can tap on avatars in the feed list to navigate to the user's profile page. This matches the existing behavior in ReplyItemView. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 81b4907 commit 0b13ffc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

V2er/View/Feed/FeedItemView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ struct FeedItemView<Data: FeedItemProtocol>: View {
1515
VStack(spacing: 0) {
1616
HStack(alignment: .top) {
1717
AvatarView(url: data.avatar)
18+
.to { UserDetailPage(userId: data.userName.safe) }
1819
VStack(alignment: .leading, spacing: 2) {
1920
Text(data.userName.safe)
2021
.font(.footnote)

0 commit comments

Comments
 (0)