라이브 상세 - 제목 왼쪽에 19금 표시 추가
This commit is contained in:
parent
550bf0c1c7
commit
3ab5735fde
|
@ -13,6 +13,7 @@ struct GetRoomDetailResponse: Decodable {
|
||||||
let title: String
|
let title: String
|
||||||
let notice: String
|
let notice: String
|
||||||
let isPaid: Bool
|
let isPaid: Bool
|
||||||
|
let isAdult: Bool
|
||||||
let isPrivateRoom: Bool
|
let isPrivateRoom: Bool
|
||||||
let password: String?
|
let password: String?
|
||||||
let tags: [String]
|
let tags: [String]
|
||||||
|
|
|
@ -75,9 +75,21 @@ struct LiveDetailView: View {
|
||||||
if let room = viewModel.room {
|
if let room = viewModel.room {
|
||||||
ScrollView(.vertical, showsIndicators: false) {
|
ScrollView(.vertical, showsIndicators: false) {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
|
HStack(spacing: 5.3) {
|
||||||
|
if room.isAdult {
|
||||||
|
Text("19")
|
||||||
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
|
.foregroundColor(Color(hex: "e33621"))
|
||||||
|
.padding(.horizontal, 5.3)
|
||||||
|
.padding(.vertical, 3.3)
|
||||||
|
.background(Color(hex: "601d14"))
|
||||||
|
.cornerRadius(2.6)
|
||||||
|
}
|
||||||
|
|
||||||
Text(room.title)
|
Text(room.title)
|
||||||
.font(.custom(Font.bold.rawValue, size: 18.3))
|
.font(.custom(Font.bold.rawValue, size: 18.3))
|
||||||
.foregroundColor(Color(hex: "eeeeee"))
|
.foregroundColor(Color(hex: "eeeeee"))
|
||||||
|
}
|
||||||
.frame(width: proxy.size.width - 26.7, alignment: .leading)
|
.frame(width: proxy.size.width - 26.7, alignment: .leading)
|
||||||
.padding(.top, 6.7)
|
.padding(.top, 6.7)
|
||||||
|
|
||||||
|
|
|
@ -110,11 +110,12 @@ struct LiveRoomView: View {
|
||||||
HStack(spacing: 5.3) {
|
HStack(spacing: 5.3) {
|
||||||
if liveRoomInfo.isAdult {
|
if liveRoomInfo.isAdult {
|
||||||
Text("19")
|
Text("19")
|
||||||
.font(.custom(Font.bold.rawValue, size: 11.3))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color.white)
|
.foregroundColor(Color(hex: "e33621"))
|
||||||
.padding(4)
|
.padding(.horizontal, 5.3)
|
||||||
.background(Color(hex: "e53621"))
|
.padding(.vertical, 3.3)
|
||||||
.clipShape(Circle())
|
.background(Color(hex: "601d14"))
|
||||||
|
.cornerRadius(2.6)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text(liveRoomInfo.title)
|
Text(liveRoomInfo.title)
|
||||||
|
|
|
@ -116,7 +116,7 @@ struct CanPaymentView: View {
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color(hex: "777777"))
|
.foregroundColor(Color(hex: "777777"))
|
||||||
|
|
||||||
Text("자세한 내용은 요즘라이브 이용약관에서 확인할 수 있습니다.")
|
Text("자세한 내용은 소다라이브 이용약관에서 확인할 수 있습니다.")
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color(hex: "777777"))
|
.foregroundColor(Color(hex: "777777"))
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
|
|
@ -205,7 +205,7 @@ struct CanPgPaymentView: View {
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color(hex: "777777"))
|
.foregroundColor(Color(hex: "777777"))
|
||||||
|
|
||||||
Text("자세한 내용은 요즘라이브 이용약관에서 확인할 수 있습니다.")
|
Text("자세한 내용은 소다라이브 이용약관에서 확인할 수 있습니다.")
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color(hex: "777777"))
|
.foregroundColor(Color(hex: "777777"))
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
|
Loading…
Reference in New Issue