라이브 방이 19금일 때 제목 앞에 🔞 대신 방패(ic_shield)가 표시되도록 수정

This commit is contained in:
Yu Sung
2026-02-04 17:41:55 +09:00
parent 3590db82be
commit 68976e221c
2 changed files with 25 additions and 6 deletions

View File

@@ -75,10 +75,19 @@ struct LiveDetailView: View {
if let room = viewModel.room {
ScrollView(.vertical, showsIndicators: false) {
VStack(spacing: 0) {
HStack(spacing: 5.3) {
Text(room.isAdult ? "🔞 \(room.title)" : room.title)
HStack(alignment: .top, spacing: 5.3) {
if room.isAdult {
Image("ic_shield")
.resizable()
.scaledToFit()
.frame(width: 18.3, height: 18.3)
}
Text(room.title)
.appFont(size: 18.3, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
.multilineTextAlignment(.leading)
.lineLimit(2)
}
.frame(width: proxy.size.width - 26.7, alignment: .leading)
.padding(.top, 6.7)

View File

@@ -50,10 +50,20 @@ struct LiveRoomInfoCreatorView: View {
}
VStack(alignment: .leading, spacing: 6.7) {
Text(isAdult ? "🔞 \(roomTitle)" : roomTitle)
.appFont(size: 12, weight: .bold)
.foregroundColor(.grayee)
.lineLimit(1)
HStack(alignment: .top, spacing: 4) {
if isAdult {
Image("ic_shield")
.resizable()
.scaledToFit()
.frame(width: 12, height: 12)
}
Text(roomTitle)
.appFont(size: 12, weight: .bold)
.foregroundColor(.grayee)
.multilineTextAlignment(.leading)
.lineLimit(1)
}
Text(creatorNickname)
.appFont(size: 12, weight: .medium)