라이브 방 - 19금 방인 경우 제목 왼쪽에 19 표시

This commit is contained in:
Yu Sung 2023-08-20 23:44:18 +09:00
parent e8de5dd72b
commit 8c3a9e25a0
2 changed files with 18 additions and 6 deletions

View File

@ -17,6 +17,7 @@ struct GetRoomInfoResponse: Decodable {
let creatorNickname: String
let creatorProfileUrl: String
let isFollowing: Bool
let isAdult: Bool
let participantsCount: Int
let totalAvailableParticipantsCount: Int
let speakerList: [LiveRoomMember]

View File

@ -107,12 +107,23 @@ struct LiveRoomView: View {
if let liveRoomInfo = viewModel.liveRoomInfo {
ZStack {
VStack(alignment: .leading, spacing: 0) {
Text(liveRoomInfo.title)
.font(.custom(Font.bold.rawValue, size: 15.3))
.foregroundColor(Color(hex: "eeeeee"))
.lineLimit(1)
.padding(.top, 16.7)
.padding(.horizontal, 13.3)
HStack(spacing: 5.3) {
if liveRoomInfo.isAdult {
Text("19")
.font(.custom(Font.bold.rawValue, size: 11.3))
.foregroundColor(Color.white)
.padding(4)
.background(Color(hex: "e53621"))
.clipShape(Circle())
}
Text(liveRoomInfo.title)
.font(.custom(Font.bold.rawValue, size: 15.3))
.foregroundColor(Color(hex: "eeeeee"))
.lineLimit(1)
}
.padding(.top, 16.7)
.padding(.horizontal, 13.3)
LiveRoomTopCreatorView(
creatorId: liveRoomInfo.creatorId,