feat(talk-tab): 아이템 터치시 채팅방 이동 기능 추가

This commit is contained in:
Yu Sung
2025-09-04 16:54:32 +09:00
parent ac5563eaa7
commit 079f914128

View File

@@ -21,8 +21,16 @@ struct TalkView: View {
ScrollView(.vertical, showsIndicators: false) {
VStack(spacing: 24) {
ForEach(0..<viewModel.talkRooms.count, id: \.self) {
TalkItemView(item: viewModel.talkRooms[$0])
let item = viewModel.talkRooms[$0]
TalkItemView(item: item)
.padding(.horizontal, 24)
.contentShape(Rectangle())
.onTapGesture {
AppState.shared
.setAppStep(
step: .chatRoom(id: item.chatRoomId)
)
}
}
}
.padding(.vertical, 24)