라이브 - 방장을 제외한 모든 유저에게 참여자 목록 버튼이 보이지 않도록 수정
This commit is contained in:
parent
6583e07f45
commit
0079f248ee
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue