지금 라이브 중 전체보기 그리드뷰 UI 3단 구성에서 2단구성으로 변경
This commit is contained in:
@@ -14,12 +14,11 @@ struct LiveNowAllView: View {
|
||||
@StateObject var liveAllViewModel = LiveAllViewModel()
|
||||
|
||||
let columns = [
|
||||
GridItem(.flexible(), alignment: .top),
|
||||
GridItem(.flexible(), alignment: .top),
|
||||
GridItem(.flexible(), alignment: .top)
|
||||
]
|
||||
|
||||
let spacing: CGFloat = 13.3
|
||||
let spacing: CGFloat = 16
|
||||
|
||||
let onClickParticipant: (Int) -> Void
|
||||
|
||||
@@ -41,7 +40,7 @@ struct LiveNowAllView: View {
|
||||
ForEach(0..<viewModel.liveNowItems.count, id: \.self) { index in
|
||||
let item = viewModel.liveNowItems[index]
|
||||
|
||||
LiveNowAllItemView(item: item, itemWidth: (screenSize().width - (spacing * (CGFloat(columns.count + 1)))) / 3)
|
||||
LiveNowAllItemView(item: item, itemWidth: (screenSize().width - (spacing * (CGFloat(columns.count + 1)))) / 2)
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture {
|
||||
self.liveAllViewModel.selectedRoomId = item.roomId
|
||||
|
||||
Reference in New Issue
Block a user