Files
sodalive-ios/SodaLive/Sources/Live/Room/Dialog/LiveRoomDonationRankingTotalCanView.swift
Yu Sung 280e424385 커스텀 폰트 pretendard-medium, gmarket-medium를 사용하고 있던 것을 appFont 모디
파이어를 사용하여 한국어는 pretendard, 그 외에는 시스템 폰트를 사용하도록 수정
2026-01-23 03:09:20 +09:00

73 lines
2.1 KiB
Swift

//
// LiveRoomDonationRankingTotalCanView.swift
// SodaLive
//
// Created by klaus on 2023/08/15.
//
import SwiftUI
struct LiveRoomDonationRankingTotalCanView: View {
let totalCan: Int
let totalSecretCan: Int
var body: some View {
HStack(alignment: .center, spacing: 0) {
Text("합계")
.appFont(size: 13.3, weight: .bold)
.foregroundColor(Color.grayd2)
if totalSecretCan > 0 {
Text(" (")
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.grayd2)
Text("일반")
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.button)
Text("/")
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.grayd2)
Text("비밀")
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "fedc00"))
Text(")")
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.grayd2)
}
Spacer()
Text("\(totalCan)")
.appFont(size: 14, weight: .medium)
.foregroundColor(Color.button)
if totalSecretCan > 0 {
Text("/")
.appFont(size: 14, weight: .medium)
.foregroundColor(Color.white)
Text("\(totalSecretCan)")
.appFont(size: 14, weight: .medium)
.foregroundColor(Color(hex: "fedc00"))
}
Text("")
.appFont(size: 10.7, weight: .medium)
.foregroundColor(Color.graybb)
.padding(.leading, 4)
}
.padding(.horizontal, 18.7)
.padding(.vertical, 10.7)
.background(Color.bg)
.cornerRadius(8)
}
}
#Preview {
LiveRoomDonationRankingTotalCanView(totalCan: 10, totalSecretCan: 0)
}