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

58 lines
1.5 KiB
Swift

//
// ContentCreatorView.swift
// SodaLive
//
// Created by klaus on 2/20/25.
//
import SwiftUI
import Kingfisher
struct ContentCreatorView: View {
let isSelected: Bool
let item: ContentCreatorResponse
var body: some View {
VStack(spacing: 13.3) {
KFImage(URL(string: item.creatorProfileImageUrl))
.cancelOnDisappear(true)
.downsampling(size: CGSize(width: 60, height: 60))
.resizable()
.frame(width: 60, height: 60)
.clipShape(Circle())
.overlay(
Circle()
.strokeBorder(lineWidth: 3)
.foregroundColor(
.button
.opacity(isSelected ? 1 : 0)
)
)
Text(item.creatorNickname)
.appFont(size: 11.3, weight: .medium)
.foregroundColor(
isSelected ?
Color.button :
Color.graybb
)
.lineLimit(1)
.truncationMode(.tail)
}
.frame(width: 60)
}
}
#Preview {
ContentCreatorView(
isSelected: true,
item: ContentCreatorResponse(
creatorId: 1,
creatorNickname: "유저1",
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png"
)
)
}