feat(creator): 현재 라이브 섹션을 연결한다
This commit is contained in:
@@ -3,12 +3,26 @@ import SwiftUI
|
||||
struct CreatorChannelHomeView: View {
|
||||
let response: CreatorChannelHomeResponse
|
||||
let onSelectTab: (CreatorChannelTab) -> Void
|
||||
let onTapLive: (Int) -> Void
|
||||
|
||||
init(
|
||||
response: CreatorChannelHomeResponse,
|
||||
onSelectTab: @escaping (CreatorChannelTab) -> Void,
|
||||
onTapLive: @escaping (Int) -> Void = { _ in }
|
||||
) {
|
||||
self.response = response
|
||||
self.onSelectTab = onSelectTab
|
||||
self.onTapLive = onTapLive
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
Color.clear
|
||||
.frame(height: 1)
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
CreatorChannelCurrentLiveSection(
|
||||
currentLive: response.currentLive,
|
||||
onTapLive: onTapLive
|
||||
)
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.background(Color.black)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user