From ad26ab08adc35c8cdc08dafe81a65c1a90a19b04 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 20 Oct 2025 18:55:48 +0900 Subject: [PATCH] =?UTF-8?q?feat(chat-home):=20=EC=8B=A0=EA=B7=9C=20?= =?UTF-8?q?=EC=BA=90=EB=A6=AD=ED=84=B0=20=EC=A0=84=EC=B2=B4=EB=B3=B4?= =?UTF-8?q?=EA=B8=B0=20=EB=B2=84=ED=8A=BC=20=ED=84=B0=EC=B9=98=EC=8B=9C=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8/=EB=B3=B8=EC=9D=B8=EC=9D=B8?= =?UTF-8?q?=EC=A6=9D=20=EB=8B=A8=EA=B3=84=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Chat/Character/CharacterView.swift | 9 ++++++--- SodaLive/Sources/Chat/ChatTabView.swift | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/SodaLive/Sources/Chat/Character/CharacterView.swift b/SodaLive/Sources/Chat/Character/CharacterView.swift index e2ff861..7de077f 100644 --- a/SodaLive/Sources/Chat/Character/CharacterView.swift +++ b/SodaLive/Sources/Chat/Character/CharacterView.swift @@ -13,6 +13,7 @@ struct CharacterView: View { private let horizontalPadding: CGFloat = 16 let onSelectCharacter: (Int) -> Void + let onSelectNewCharacterAll: () -> Void var body: some View { BaseView(isLoading: $viewModel.isLoading) { @@ -55,8 +56,7 @@ struct CharacterView: View { isShowRank: false, trailingTitle: "전체보기", onTapTrailing: { - AppState.shared - .setAppStep(step: .newCharacterAll) + onSelectNewCharacterAll() }, onTap: { ch in onSelectCharacter(ch.characterId) @@ -111,5 +111,8 @@ struct CharacterView: View { } #Preview { - CharacterView(onSelectCharacter: { _ in }) + CharacterView( + onSelectCharacter: { _ in }, + onSelectNewCharacterAll: {} + ) } diff --git a/SodaLive/Sources/Chat/ChatTabView.swift b/SodaLive/Sources/Chat/ChatTabView.swift index f7b8fa6..cf5c9ca 100644 --- a/SodaLive/Sources/Chat/ChatTabView.swift +++ b/SodaLive/Sources/Chat/ChatTabView.swift @@ -114,7 +114,7 @@ struct ChatTabView: View { Group { switch selectedTab { case .character: - CharacterView(onSelectCharacter: handleCharacterSelection) + CharacterView(onSelectCharacter: handleCharacterSelection, onSelectNewCharacterAll: handleCharacterSelection) case .talk: TalkView() }