feat(character-detail): 상세 화면 도입 및 네비게이션/API 연동

This commit is contained in:
Yu Sung
2025-09-02 01:10:41 +09:00
parent 26271e421d
commit f11120b8d0
12 changed files with 571 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ struct CharacterView: View {
//
if !viewModel.banners.isEmpty {
AutoSlideCharacterBannerView(items: viewModel.banners) { banner in
DEBUG_LOG("Banner tapped: \(banner.characterId)")
AppState.shared.setAppStep(step: .characterDetail(characterId: banner.characterId))
}
}
@@ -29,7 +29,7 @@ struct CharacterView: View {
titleCount: viewModel.recentCharacters.count,
items: viewModel.recentCharacters
) { ch in
DEBUG_LOG("Recent tapped: \(ch.characterId)")
AppState.shared.setAppStep(step: .characterDetail(characterId: ch.characterId))
}
}
@@ -39,7 +39,7 @@ struct CharacterView: View {
title: "신규 캐릭터",
items: viewModel.newCharacters
) { ch in
DEBUG_LOG("New tapped: \(ch.characterId)")
AppState.shared.setAppStep(step: .characterDetail(characterId: ch.characterId))
}
}
@@ -52,7 +52,7 @@ struct CharacterView: View {
title: section.title,
items: section.characters
) { ch in
DEBUG_LOG("Curation tapped: \\(ch.characterId)")
AppState.shared.setAppStep(step: .characterDetail(characterId: ch.characterId))
}
}
}