라이브 - 방장을 제외한 모든 유저에게 참여자 목록 버튼이 보이지 않도록 수정
This commit is contained in:
parent
6583e07f45
commit
0079f248ee
|
@ -784,26 +784,28 @@ struct LiveRoomView: View {
|
||||||
viewModel.isShowDonationRankingPopup = true
|
viewModel.isShowDonationRankingPopup = true
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack(spacing: 0) {
|
if liveRoomInfo.creatorId == UserDefaults.int(forKey: .userId) {
|
||||||
Text("참여자")
|
HStack(spacing: 0) {
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
Text("참여자")
|
||||||
.foregroundColor(Color(hex: "bbbbbb"))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
|
.foregroundColor(Color(hex: "bbbbbb"))
|
||||||
|
|
||||||
Text("\(liveRoomInfo.participantsCount)")
|
Text("\(liveRoomInfo.participantsCount)")
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color(hex: "9970ff"))
|
.foregroundColor(Color(hex: "9970ff"))
|
||||||
.padding(.leading, 6.7)
|
.padding(.leading, 6.7)
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 11.5)
|
.padding(.horizontal, 11.5)
|
||||||
.padding(.vertical, 7.3)
|
.padding(.vertical, 7.3)
|
||||||
.overlay(
|
.overlay(
|
||||||
RoundedRectangle(cornerRadius: 12.8)
|
RoundedRectangle(cornerRadius: 12.8)
|
||||||
.strokeBorder(lineWidth: 1)
|
.strokeBorder(lineWidth: 1)
|
||||||
.foregroundColor(Color(hex: "eeeeee"))
|
.foregroundColor(Color(hex: "eeeeee"))
|
||||||
)
|
)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
viewModel.isShowProfileList = true
|
viewModel.isShowProfileList = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.top, 13.3)
|
.padding(.top, 13.3)
|
||||||
|
|
Loading…
Reference in New Issue