feat(creator): 시리즈 섹션을 연결한다

This commit is contained in:
Yu Sung
2026-07-03 15:07:24 +09:00
parent 32174cd0af
commit ed6240fdd0
9 changed files with 188 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ struct CreatorChannelHomeView: View {
let onTapContent: (Int) -> Void
let onTapDonate: () -> Void
let onTapSchedule: (CreatorActivityType, Int) -> Void
let onTapSeries: (Int) -> Void
init(
response: CreatorChannelHomeResponse,
@@ -14,7 +15,8 @@ struct CreatorChannelHomeView: View {
onTapLive: @escaping (Int) -> Void = { _ in },
onTapContent: @escaping (Int) -> Void = { _ in },
onTapDonate: @escaping () -> Void = {},
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in }
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in },
onTapSeries: @escaping (Int) -> Void = { _ in }
) {
self.response = response
self.onSelectTab = onSelectTab
@@ -22,6 +24,7 @@ struct CreatorChannelHomeView: View {
self.onTapContent = onTapContent
self.onTapDonate = onTapDonate
self.onTapSchedule = onTapSchedule
self.onTapSeries = onTapSeries
}
var body: some View {
@@ -54,6 +57,12 @@ struct CreatorChannelHomeView: View {
onSelectTab: onSelectTab,
onTapContent: onTapContent
)
CreatorChannelSeriesSection(
series: response.series,
onSelectTab: onSelectTab,
onTapSeries: onTapSeries
)
}
.frame(maxWidth: .infinity, alignment: .leading)
.background(Color.black)