diff --git a/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift b/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift index 586191f..d26118b 100644 --- a/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift +++ b/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift @@ -13,13 +13,15 @@ struct LiveNowAllView: View { @StateObject var viewModel = LiveViewModel() @StateObject var liveAllViewModel = LiveAllViewModel() - let columns = [ - GridItem(.flexible(), alignment: .top), - GridItem(.flexible(), alignment: .top) - ] - let spacing: CGFloat = 16 + var columns: [GridItem] { + [ + GridItem(.flexible(), spacing: spacing, alignment: .top), + GridItem(.flexible(), spacing: spacing, alignment: .top) + ] + } + let onClickParticipant: (Int) -> Void var body: some View { @@ -36,11 +38,13 @@ struct LiveNowAllView: View { viewModel.getLiveNowList() }, content: { + let itemWidth = (proxy.size.width - (spacing * 3)) / 2 + LazyVGrid(columns: columns, spacing: spacing) { ForEach(0..