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

@@ -40,10 +40,11 @@ struct CharacterView: View {
CharacterSectionView(
title: "인기 캐릭터",
items: viewModel.popularCharacters,
isShowRank: true
) { ch in
onSelectCharacter(ch.characterId)
}
isShowRank: true,
onTap: { ch in
onSelectCharacter(ch.characterId)
}
)
}
//
@@ -51,10 +52,16 @@ struct CharacterView: View {
CharacterSectionView(
title: "신규 캐릭터",
items: viewModel.newCharacters,
isShowRank: false
) { ch in
onSelectCharacter(ch.characterId)
}
isShowRank: false,
trailingTitle: "전체보기",
onTapTrailing: {
AppState.shared
.setAppStep(step: .newCharacterAll)
},
onTap: { ch in
onSelectCharacter(ch.characterId)
}
)
}
// ( )
@@ -65,10 +72,11 @@ struct CharacterView: View {
CharacterSectionView(
title: section.title,
items: section.characters,
isShowRank: false
) { ch in
onSelectCharacter(ch.characterId)
}
isShowRank: false,
onTap: { ch in
onSelectCharacter(ch.characterId)
}
)
}
}
}