고객센터 페이지 추가

This commit is contained in:
Yu Sung
2023-08-11 07:33:38 +09:00
parent e082e07fa6
commit 64b0380671
13 changed files with 482 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
//
// 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)
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(.white)
.frame(width: proxy.size.width, height: 46.7)
.background(isSelected ? Color(hex: "9970ff") : Color(hex: "222222"))
.cornerRadius(4.7)
}
}
}
struct ServiceCenterCategoryItemView_Previews: PreviewProvider {
static var previews: some View {
ServiceCenterCategoryItemView(category: "전체", isSelected: false)
}
}