Files
sodalive-ios/SodaLive/Sources/Chat/Character/Recent/RecentCharacterItemView.swift

38 lines
904 B
Swift

//
// RecentCharacterItemView.swift
// SodaLive
//
// Created by klaus on 8/29/25.
//
import SwiftUI
import Kingfisher
struct RecentCharacterItemView: View {
let character: RecentCharacter
var body: some View {
VStack(spacing: 6) {
DownsampledKFImage(
url: URL(string: character.imageUrl),
size: CGSize(width: 76, height: 76)
)
.clipShape(Circle())
Text(character.name)
.appFont(size: 18, weight: .regular)
.foregroundColor(.white)
.lineLimit(1)
.frame(maxWidth: 76)
.multilineTextAlignment(.center)
}
}
}
#Preview {
RecentCharacterItemView(
character: RecentCharacter(characterId: 1, name: "앨리스", imageUrl: "https://picsum.photos/200")
)
.background(Color.black)
}