24 lines
753 B
Swift
24 lines
753 B
Swift
import SwiftUI
|
|
|
|
struct CreatorChannelHomeView: View {
|
|
let response: CreatorChannelHomeResponse
|
|
let onSelectTab: (CreatorChannelTab) -> Void
|
|
|
|
var body: some View {
|
|
ScrollView {
|
|
VStack(alignment: .leading, spacing: 16) {
|
|
Text(response.creator.nickname)
|
|
.font(.system(size: 24, weight: .bold))
|
|
.foregroundColor(.white)
|
|
|
|
Text(I18n.CreatorChannelHome.followerCount(response.creator.followerCount.comma()))
|
|
.font(.system(size: 14))
|
|
.foregroundColor(Color.gray500)
|
|
}
|
|
.frame(maxWidth: .infinity, alignment: .leading)
|
|
.padding(20)
|
|
}
|
|
.background(Color.black)
|
|
}
|
|
}
|