feat: 메인 라이브
- 커뮤니티 신규 UI 사이즈 적용
This commit is contained in:
@@ -39,12 +39,6 @@ final class LiveViewModel: ObservableObject {
|
||||
@Published var passwordDialogConfirmAction: (String) -> Void = { _ in }
|
||||
@Published var isShowPasswordDialog = false
|
||||
|
||||
@Published var isFollowingList = UserDefaults.bool(forKey: .isFollowedChannel) {
|
||||
didSet {
|
||||
UserDefaults.set(isFollowingList, forKey: .isFollowedChannel)
|
||||
}
|
||||
}
|
||||
|
||||
@Published var liveStartDate: String? = nil
|
||||
@Published var nowDate: String? = nil
|
||||
|
||||
|
||||
@@ -12,17 +12,30 @@ struct SectionCommunityPostView: View {
|
||||
let items: [GetCommunityPostListResponse]
|
||||
|
||||
var body: some View {
|
||||
ScrollView(.horizontal, showsIndicators: false) {
|
||||
HStack(spacing: 13.3) {
|
||||
ForEach(0..<items.count, id: \.self) { index in
|
||||
let item = items[index]
|
||||
CreatorCommunityItemView(item: item)
|
||||
.frame(width: 320)
|
||||
.onTapGesture {
|
||||
AppState.shared
|
||||
.setAppStep(step: .creatorCommunityAll(creatorId: item.creatorId))
|
||||
}
|
||||
VStack(spacing: 16) {
|
||||
HStack(spacing: 0) {
|
||||
Text("커뮤니티")
|
||||
.font(.custom(Font.preBold.rawValue, size: 24))
|
||||
.foregroundColor(.button)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding(.horizontal, 24)
|
||||
|
||||
ScrollView(.horizontal, showsIndicators: false) {
|
||||
HStack(spacing: 16) {
|
||||
ForEach(0..<items.count, id: \.self) { index in
|
||||
let item = items[index]
|
||||
CreatorCommunityItemView(item: item)
|
||||
.frame(width: screenSize().width - 48)
|
||||
.onTapGesture {
|
||||
AppState.shared
|
||||
.setAppStep(step: .creatorCommunityAll(creatorId: item.creatorId))
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 24)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user