- 크리에이터가 없으면 섹션제거
This commit is contained in:
Yu Sung 2024-05-03 16:50:03 +09:00
parent 2590f5471b
commit 83d51a525b
1 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,10 @@ struct ExplorerView: View {
ScrollView(.vertical, showsIndicators: false) {
VStack(spacing: 26.7) {
ForEach(0..<viewModel.explorerSections.count, id: \.self) { index in
ExplorerSectionView(section: viewModel.explorerSections[index])
let section = viewModel.explorerSections[index]
if !section.creators.isEmpty {
ExplorerSectionView(section: section)
}
}
}
.padding(.vertical, 40)