feat(home): 응원 크리에이터 섹션을 연결한다
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user