feat(creator): 커뮤니티 아이템 표시를 통일한다

This commit is contained in:
Yu Sung
2026-08-10 15:11:02 +09:00
parent 89c070875c
commit c372d4a522
15 changed files with 1377 additions and 183 deletions

View File

@@ -2,6 +2,7 @@ import SwiftUI
struct CreatorChannelHomeView: View {
let response: CreatorChannelHomeResponse
let isOwnCreatorChannel: Bool
let onSelectTab: (CreatorChannelTab) -> Void
let onTapLive: (Int) -> Void
let onTapContent: (Int) -> Void
@@ -9,18 +10,24 @@ struct CreatorChannelHomeView: View {
let onTapSchedule: (CreatorActivityType, Int) -> Void
let onTapSeries: (Int) -> Void
let onTapCommunityLike: (Int) -> Void
let onTapCommunityMore: (CreatorChannelCommunityPostItem) -> Void
let onTapCommunityDetail: (Int) -> Void
init(
response: CreatorChannelHomeResponse,
isOwnCreatorChannel: Bool,
onSelectTab: @escaping (CreatorChannelTab) -> Void,
onTapLive: @escaping (Int) -> Void = { _ in },
onTapContent: @escaping (Int) -> Void = { _ in },
onTapDonate: @escaping () -> Void = {},
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in },
onTapSeries: @escaping (Int) -> Void = { _ in },
onTapCommunityLike: @escaping (Int) -> Void = { _ in }
onTapCommunityLike: @escaping (Int) -> Void = { _ in },
onTapCommunityMore: @escaping (CreatorChannelCommunityPostItem) -> Void = { _ in },
onTapCommunityDetail: @escaping (Int) -> Void = { _ in }
) {
self.response = response
self.isOwnCreatorChannel = isOwnCreatorChannel
self.onSelectTab = onSelectTab
self.onTapLive = onTapLive
self.onTapContent = onTapContent
@@ -28,6 +35,8 @@ struct CreatorChannelHomeView: View {
self.onTapSchedule = onTapSchedule
self.onTapSeries = onTapSeries
self.onTapCommunityLike = onTapCommunityLike
self.onTapCommunityMore = onTapCommunityMore
self.onTapCommunityDetail = onTapCommunityDetail
}
var body: some View {
@@ -69,8 +78,11 @@ struct CreatorChannelHomeView: View {
CreatorChannelCommunitySection(
communities: response.communities,
isOwnCreatorChannel: isOwnCreatorChannel,
onSelectTab: onSelectTab,
onTapLike: onTapCommunityLike
onTapLike: onTapCommunityLike,
onTapMore: onTapCommunityMore,
onTapDetail: onTapCommunityDetail
)
CreatorChannelFanTalkSection(