라이브 방이 19금일 때 제목 앞에 🔞 대신 방패(ic_shield)가 표시되도록 수정
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -50,10 +50,20 @@ struct LiveRoomInfoCreatorView: View {
|
||||
}
|
||||
|
||||
VStack(alignment: .leading, spacing: 6.7) {
|
||||
Text(isAdult ? "🔞 \(roomTitle)" : roomTitle)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user