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,