feat(chat-character): 신규 캐릭터 전체보기 화면 및 API 연동 추가

This commit is contained in:
Yu Sung
2025-09-12 22:28:53 +09:00
parent 49e014878d
commit ed3f3f796a
11 changed files with 365 additions and 25 deletions

View File

@@ -11,14 +11,25 @@ struct CharacterSectionView: View {
let title: String
let items: [Character]
let isShowRank: Bool
var trailingTitle: String? = nil
var onTapTrailing: (() -> Void)? = nil
var onTap: (Character) -> Void = { _ in }
var body: some View {
VStack(alignment: .leading, spacing: 16) {
Text(title)
.font(.custom(Font.preBold.rawValue, size: 20))
.foregroundColor(.white)
.padding(.horizontal, 24)
HStack(spacing: 0) {
Text(title)
.font(.custom(Font.preBold.rawValue, size: 20))
.foregroundColor(.white)
Spacer()
if let trailingTitle = trailingTitle {
Text(trailingTitle)
.font(.custom(Font.preRegular.rawValue, size: 14))
.foregroundColor(Color(hex: "90A4AE"))
.onTapGesture { onTapTrailing?() }
}
}
.padding(.horizontal, 24)
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 16) {