// // HomeLatestContentView.swift // SodaLive // // Created by klaus on 7/11/25. // import SwiftUI struct HomeLatestContentView: View { let onClickMore: () -> Void let themeList: [String] let contentList: [AudioContentMainItem] let selectTheme: (String) -> Void @State private var selectedTheme = "전체" let rows = [ GridItem(.flexible(), alignment: .leading), GridItem(.flexible(), alignment: .leading) ] var body: some View { HStack(spacing: 0) { Text("최신") .font(.custom(Font.preBold.rawValue, size: 24)) .foregroundColor(.button) Text(" 콘텐츠") .font(.custom(Font.preBold.rawValue, size: 24)) .foregroundColor(.white) Spacer() Text("전체보기") .font(.custom(Font.preRegular.rawValue, size: 14)) .foregroundColor(.init(hex: "78909C")) .onTapGesture { onClickMore() } } .padding(.horizontal, 24) if !themeList.isEmpty { ContentMainContentThemeView( themeList: themeList, selectTheme: selectTheme, selectedTheme: $selectedTheme ) } ScrollView(.horizontal, showsIndicators: false) { LazyHGrid(rows: rows, spacing: 16) { ForEach(0..