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

32 lines
775 B
Swift

//
// ServiceCenterCategoryItemView.swift
// SodaLive
//
// Created by klaus on 2023/08/11.
//
import SwiftUI
struct ServiceCenterCategoryItemView: View {
let category: String
let isSelected: Bool
var body: some View {
GeometryReader { proxy in
Text(category)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(.white)
.frame(width: proxy.size.width, height: 46.7)
.background(isSelected ? Color.button : Color.gray22)
.cornerRadius(4.7)
}
}
}
struct ServiceCenterCategoryItemView_Previews: PreviewProvider {
static var previews: some View {
ServiceCenterCategoryItemView(category: "전체", isSelected: false)
}
}