feat(home): 팔로잉 On Air 섹션을 추가한다
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user