From 2c74bb743bfb436267e241a2500bca152f45b329 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 14 Nov 2025 01:31:52 +0900 Subject: [PATCH] =?UTF-8?q?feat(chat-character):=20=ED=81=90=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=EC=98=81=EC=97=AD=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Chat/Character/CharacterHomeResponse.swift | 1 - .../Sources/Chat/Character/CharacterView.swift | 17 ----------------- .../Chat/Character/CharacterViewModel.swift | 2 -- .../Character/Curation/CurationSection.swift | 12 ------------ 4 files changed, 32 deletions(-) delete mode 100644 SodaLive/Sources/Chat/Character/Curation/CurationSection.swift diff --git a/SodaLive/Sources/Chat/Character/CharacterHomeResponse.swift b/SodaLive/Sources/Chat/Character/CharacterHomeResponse.swift index 8d354b1..8cdfa27 100644 --- a/SodaLive/Sources/Chat/Character/CharacterHomeResponse.swift +++ b/SodaLive/Sources/Chat/Character/CharacterHomeResponse.swift @@ -10,5 +10,4 @@ struct CharacterHomeResponse: Decodable { let recentCharacters: [RecentCharacter] let popularCharacters: [Character] let newCharacters: [Character] - let curationSections: [CurationSection] } diff --git a/SodaLive/Sources/Chat/Character/CharacterView.swift b/SodaLive/Sources/Chat/Character/CharacterView.swift index 7de077f..911c869 100644 --- a/SodaLive/Sources/Chat/Character/CharacterView.swift +++ b/SodaLive/Sources/Chat/Character/CharacterView.swift @@ -63,23 +63,6 @@ struct CharacterView: View { } ) } - - // 큐레이션 섹션 (여러 섹션) - if !viewModel.curations.isEmpty { - VStack(alignment: .leading, spacing: 48) { - ForEach(viewModel.curations.indices, id: \.self) { idx in - let section = viewModel.curations[idx] - CharacterSectionView( - title: section.title, - items: section.characters, - isShowRank: false, - onTap: { ch in - onSelectCharacter(ch.characterId) - } - ) - } - } - } } .padding(.bottom, 24) } diff --git a/SodaLive/Sources/Chat/Character/CharacterViewModel.swift b/SodaLive/Sources/Chat/Character/CharacterViewModel.swift index 4b99b09..574a87f 100644 --- a/SodaLive/Sources/Chat/Character/CharacterViewModel.swift +++ b/SodaLive/Sources/Chat/Character/CharacterViewModel.swift @@ -15,7 +15,6 @@ final class CharacterViewModel: ObservableObject { @Published private(set) var recentCharacters: [RecentCharacter] = [] @Published private(set) var popularCharacters: [Character] = [] @Published private(set) var newCharacters: [Character] = [] - @Published private(set) var curations: [CurationSection] = [] @Published var isLoading: Bool = false @Published var errorMessage: String = "" @@ -49,7 +48,6 @@ final class CharacterViewModel: ObservableObject { self.recentCharacters = data.recentCharacters self.popularCharacters = data.popularCharacters self.newCharacters = data.newCharacters - self.curations = data.curationSections.filter { !$0.characters.isEmpty } } else { if let message = decoded.message { self.errorMessage = message diff --git a/SodaLive/Sources/Chat/Character/Curation/CurationSection.swift b/SodaLive/Sources/Chat/Character/Curation/CurationSection.swift deleted file mode 100644 index 4859bfd..0000000 --- a/SodaLive/Sources/Chat/Character/Curation/CurationSection.swift +++ /dev/null @@ -1,12 +0,0 @@ -// -// CurationSection.swift -// SodaLive -// -// Created by klaus on 8/29/25. -// - -struct CurationSection: Decodable { - let characterCurationId: Int - let title: String - let characters: [Character] -}