From 0079f248eec024a0908ddb547be8579d860a4885 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 31 Oct 2023 16:32:56 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20-=20=EB=B0=A9?= =?UTF-8?q?=EC=9E=A5=EC=9D=84=20=EC=A0=9C=EC=99=B8=ED=95=9C=20=EB=AA=A8?= =?UTF-8?q?=EB=93=A0=20=EC=9C=A0=EC=A0=80=EC=97=90=EA=B2=8C=20=EC=B0=B8?= =?UTF-8?q?=EC=97=AC=EC=9E=90=20=EB=AA=A9=EB=A1=9D=20=EB=B2=84=ED=8A=BC?= =?UTF-8?q?=EC=9D=B4=20=EB=B3=B4=EC=9D=B4=EC=A7=80=20=EC=95=8A=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Live/Room/LiveRoomView.swift | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/SodaLive/Sources/Live/Room/LiveRoomView.swift b/SodaLive/Sources/Live/Room/LiveRoomView.swift index f827154..0ec6839 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomView.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomView.swift @@ -784,26 +784,28 @@ struct LiveRoomView: View { viewModel.isShowDonationRankingPopup = true } - HStack(spacing: 0) { - Text("참여자") - .font(.custom(Font.medium.rawValue, size: 12)) - .foregroundColor(Color(hex: "bbbbbb")) - - Text("\(liveRoomInfo.participantsCount)") - .font(.custom(Font.medium.rawValue, size: 12)) - .foregroundColor(Color(hex: "9970ff")) - .padding(.leading, 6.7) - } - .padding(.horizontal, 11.5) - .padding(.vertical, 7.3) - .overlay( - RoundedRectangle(cornerRadius: 12.8) - .strokeBorder(lineWidth: 1) - .foregroundColor(Color(hex: "eeeeee")) - ) - .contentShape(Rectangle()) - .onTapGesture { - viewModel.isShowProfileList = true + if liveRoomInfo.creatorId == UserDefaults.int(forKey: .userId) { + HStack(spacing: 0) { + Text("참여자") + .font(.custom(Font.medium.rawValue, size: 12)) + .foregroundColor(Color(hex: "bbbbbb")) + + Text("\(liveRoomInfo.participantsCount)") + .font(.custom(Font.medium.rawValue, size: 12)) + .foregroundColor(Color(hex: "9970ff")) + .padding(.leading, 6.7) + } + .padding(.horizontal, 11.5) + .padding(.vertical, 7.3) + .overlay( + RoundedRectangle(cornerRadius: 12.8) + .strokeBorder(lineWidth: 1) + .foregroundColor(Color(hex: "eeeeee")) + ) + .contentShape(Rectangle()) + .onTapGesture { + viewModel.isShowProfileList = true + } } } .padding(.top, 13.3)