feat(home): 응원 크리에이터 섹션을 연결한다

This commit is contained in:
Yu Sung
2026-06-29 21:18:04 +09:00
parent 2727cdc7cb
commit 007d63c0cd
4 changed files with 92 additions and 5 deletions

View File

@@ -49,6 +49,7 @@ struct MainHomeGenreCreatorSection: View {
struct MainHomeCreatorGroupSection: View {
let title: String
let showTitle: Bool
let creators: [HomeCreatorItem]
let isFollowAllCompleted: Bool
let isFollowAllLoading: Bool
@@ -57,6 +58,7 @@ struct MainHomeCreatorGroupSection: View {
init(
title: String,
showTitle: Bool = true,
creators: [HomeCreatorItem],
isFollowAllCompleted: Bool = false,
isFollowAllLoading: Bool = false,
@@ -64,6 +66,7 @@ struct MainHomeCreatorGroupSection: View {
onTapFollowAll: @escaping () -> Void = {}
) {
self.title = title
self.showTitle = showTitle
self.creators = creators
self.isFollowAllCompleted = isFollowAllCompleted
self.isFollowAllLoading = isFollowAllLoading
@@ -73,11 +76,13 @@ struct MainHomeCreatorGroupSection: View {
var body: some View {
VStack(alignment: .leading, spacing: SodaSpacing.s14) {
Text(title)
.appFont(.heading3)
.foregroundColor(.white)
.lineLimit(1)
.truncationMode(.tail)
if showTitle {
Text(title)
.appFont(.heading3)
.foregroundColor(.white)
.lineLimit(1)
.truncationMode(.tail)
}
LazyVGrid(columns: columns, alignment: .center, spacing: SodaSpacing.s14) {
ForEach(creators.prefix(8), id: \.self) { creator in