From 8c3a9e25a02ef3085bab9d229d5161f07a413fa2 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Sun, 20 Aug 2023 23:44:18 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EB=B0=A9=20-=201?= =?UTF-8?q?9=EA=B8=88=20=EB=B0=A9=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=20?= =?UTF-8?q?=EC=A0=9C=EB=AA=A9=20=EC=99=BC=EC=AA=BD=EC=97=90=2019=20?= =?UTF-8?q?=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Live/Room/GetRoomInfoResponse.swift | 1 + SodaLive/Sources/Live/Room/LiveRoomView.swift | 23 ++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/SodaLive/Sources/Live/Room/GetRoomInfoResponse.swift b/SodaLive/Sources/Live/Room/GetRoomInfoResponse.swift index c8a526f..3999f7b 100644 --- a/SodaLive/Sources/Live/Room/GetRoomInfoResponse.swift +++ b/SodaLive/Sources/Live/Room/GetRoomInfoResponse.swift @@ -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] diff --git a/SodaLive/Sources/Live/Room/LiveRoomView.swift b/SodaLive/Sources/Live/Room/LiveRoomView.swift index 7baec7e..2bb1c79 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomView.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomView.swift @@ -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,