라이브방 - 라이브 후원랭킹 리스트
- 방장은 일반후원 / 비밀후원 캔을 나눠서 보이도록 수정
This commit is contained in:
@@ -10,6 +10,7 @@ import SwiftUI
|
||||
struct LiveRoomDonationRankingTotalCanView: View {
|
||||
|
||||
let totalCan: Int
|
||||
let totalSecretCan: Int
|
||||
|
||||
var body: some View {
|
||||
HStack(alignment: .center, spacing: 0) {
|
||||
@@ -17,12 +18,43 @@ struct LiveRoomDonationRankingTotalCanView: View {
|
||||
.font(.custom(Font.bold.rawValue, size: 13.3))
|
||||
.foregroundColor(Color.grayd2)
|
||||
|
||||
if totalSecretCan > 0 {
|
||||
Text(" (")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color.grayd2)
|
||||
|
||||
Text("일반")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color.button)
|
||||
|
||||
Text("/")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color.grayd2)
|
||||
|
||||
Text("비밀")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color(hex: "fedc00"))
|
||||
|
||||
Text(")")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color.grayd2)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("\(totalCan)")
|
||||
.font(.custom(Font.medium.rawValue, size: 16))
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.foregroundColor(Color.button)
|
||||
|
||||
if totalSecretCan > 0 {
|
||||
Text("/")
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.foregroundColor(Color.white)
|
||||
Text("\(totalSecretCan)")
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.foregroundColor(Color(hex: "fedc00"))
|
||||
}
|
||||
|
||||
Text("캔")
|
||||
.font(.custom(Font.medium.rawValue, size: 10.7))
|
||||
.foregroundColor(Color.graybb)
|
||||
@@ -34,3 +66,7 @@ struct LiveRoomDonationRankingTotalCanView: View {
|
||||
.cornerRadius(8)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
LiveRoomDonationRankingTotalCanView(totalCan: 10, totalSecretCan: 0)
|
||||
}
|
||||
|
Reference in New Issue
Block a user