feat(home): 팔로잉 On Air 섹션을 추가한다

This commit is contained in:
Yu Sung
2026-07-01 10:36:03 +09:00
parent 2a23a341c0
commit 5761d6083b
5 changed files with 165 additions and 1 deletions

View File

@@ -1,15 +1,18 @@
import SwiftUI
struct MainHomeFollowingView: View {
let onTapLive: (Int) -> Void
let onTapCreator: (Int) -> Void
let onTapFollowingAll: () -> Void
@StateObject private var viewModel = MainHomeFollowingViewModel()
init(
onTapLive: @escaping (Int) -> Void = { _ in },
onTapCreator: @escaping (Int) -> Void = { _ in },
onTapFollowingAll: @escaping () -> Void = {}
) {
self.onTapLive = onTapLive
self.onTapCreator = onTapCreator
self.onTapFollowingAll = onTapFollowingAll
}
@@ -22,6 +25,11 @@ struct MainHomeFollowingView: View {
onTapAll: onTapFollowingAll
)
MainHomeFollowingLiveSection(
onAirLives: viewModel.response?.onAirLives ?? [],
onTapLive: onTapLive
)
MainPlaceholderTabView(title: "팔로잉")
}
.onAppear {