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] -}