고객센터 페이지 추가
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user