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

70 lines
2.2 KiB
Swift

//
// ReservationStatusView.swift
// SodaLive
//
// Created by klaus on 2023/08/10.
//
import SwiftUI
struct ReservationStatusView: View {
let data: MyPageResponse
var body: some View {
VStack(alignment: .leading, spacing: 13.3) {
Text("예약현황")
.appFont(size: 18.3, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
HStack(spacing: 0) {
let width = screenSize().width - 26.7
HStack(spacing: 6.7) {
Image("ic_tabbar_live_selected")
.resizable()
.frame(width: 20, height: 20)
Text("라이브")
.appFont(size: 14.7, weight: .bold)
.foregroundColor(Color(hex: "3bb9f1"))
Text("\(data.liveReservationCount)")
.appFont(size: 14.7, weight: .medium)
.foregroundColor(Color(hex: "3bb9f1"))
}
.frame(width: width, height: 46.7)
.background(Color(hex: "13181b"))
.cornerRadius(6.7)
.overlay(
RoundedRectangle(cornerRadius: 6.7)
.stroke(Color(hex: "3bb9f1"), lineWidth: 1.3)
)
.onTapGesture {
AppState.shared.setAppStep(step: .liveReservation)
}
}
}
.frame(width: screenSize().width - 26.7, alignment: .leading)
}
}
struct ReservationStatusView_Previews: PreviewProvider {
static var previews: some View {
ReservationStatusView(
data: MyPageResponse(
nickname: "완다 막시모프",
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
chargeCan: 0,
rewardCan: 150,
point: 100,
youtubeUrl: "",
instagramUrl: "",
websiteUrl: "",
blogUrl: "",
liveReservationCount: 0,
isAuth: false
)
)
}
}