지금 라이브 중 아이템 하단에 크리에이터가 설정한 언어와 관심사 1개 랜덤 표시

This commit is contained in:
Yu Sung
2026-01-30 17:31:58 +09:00
parent 26f67028cf
commit 5352d28fe3

View File

@@ -24,7 +24,12 @@ struct LiveNowItemView: View {
resolvedWidth * defaultHeight / defaultWidth
}
private var tagsToShow: [String] {
Array(item.tags.prefix(2))
}
var body: some View {
VStack(spacing: 8) {
ZStack(alignment: .top) {
HStack(spacing: 0) {
if item.isPrivateRoom {
@@ -108,6 +113,24 @@ struct LiveNowItemView: View {
.frame(width: resolvedWidth, height: resolvedHeight, alignment: .top)
.background(Color(hex: "263238"))
.cornerRadius(16)
if !tagsToShow.isEmpty {
HStack(spacing: 4) {
ForEach(tagsToShow, id: \.self) { tag in
Text(tag)
.appFont(size: 12, weight: .regular)
.foregroundColor(.white)
.padding(.horizontal, 8)
.padding(.vertical, 4)
.background(Color(hex: "37474F"))
.cornerRadius(8)
}
Spacer()
}
.padding(.horizontal, 4)
}
}
}
}