feat(home): 팔로잉 크리에이터 탭을 연결한다

This commit is contained in:
Yu Sung
2026-07-01 09:55:14 +09:00
parent e15d114be3
commit 2a23a341c0
2 changed files with 11 additions and 2 deletions

View File

@@ -1,11 +1,16 @@
import SwiftUI
struct MainHomeFollowingView: View {
let onTapCreator: (Int) -> Void
let onTapFollowingAll: () -> Void
@StateObject private var viewModel = MainHomeFollowingViewModel()
init(onTapFollowingAll: @escaping () -> Void = {}) {
init(
onTapCreator: @escaping (Int) -> Void = { _ in },
onTapFollowingAll: @escaping () -> Void = {}
) {
self.onTapCreator = onTapCreator
self.onTapFollowingAll = onTapFollowingAll
}
@@ -13,6 +18,7 @@ struct MainHomeFollowingView: View {
VStack(spacing: 0) {
MainHomeFollowingCreatorSection(
followingCreators: viewModel.response?.followingCreators ?? [],
onTapCreator: onTapCreator,
onTapAll: onTapFollowingAll
)