라이브 방 - 19금 방인 경우 제목 왼쪽에 19 표시
This commit is contained in:
parent
e8de5dd72b
commit
8c3a9e25a0
|
@ -17,6 +17,7 @@ struct GetRoomInfoResponse: Decodable {
|
||||||
let creatorNickname: String
|
let creatorNickname: String
|
||||||
let creatorProfileUrl: String
|
let creatorProfileUrl: String
|
||||||
let isFollowing: Bool
|
let isFollowing: Bool
|
||||||
|
let isAdult: Bool
|
||||||
let participantsCount: Int
|
let participantsCount: Int
|
||||||
let totalAvailableParticipantsCount: Int
|
let totalAvailableParticipantsCount: Int
|
||||||
let speakerList: [LiveRoomMember]
|
let speakerList: [LiveRoomMember]
|
||||||
|
|
|
@ -107,12 +107,23 @@ struct LiveRoomView: View {
|
||||||
if let liveRoomInfo = viewModel.liveRoomInfo {
|
if let liveRoomInfo = viewModel.liveRoomInfo {
|
||||||
ZStack {
|
ZStack {
|
||||||
VStack(alignment: .leading, spacing: 0) {
|
VStack(alignment: .leading, spacing: 0) {
|
||||||
Text(liveRoomInfo.title)
|
HStack(spacing: 5.3) {
|
||||||
.font(.custom(Font.bold.rawValue, size: 15.3))
|
if liveRoomInfo.isAdult {
|
||||||
.foregroundColor(Color(hex: "eeeeee"))
|
Text("19")
|
||||||
.lineLimit(1)
|
.font(.custom(Font.bold.rawValue, size: 11.3))
|
||||||
.padding(.top, 16.7)
|
.foregroundColor(Color.white)
|
||||||
.padding(.horizontal, 13.3)
|
.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(
|
LiveRoomTopCreatorView(
|
||||||
creatorId: liveRoomInfo.creatorId,
|
creatorId: liveRoomInfo.creatorId,
|
||||||
|
|
Loading…
Reference in New Issue