feat(latest-audio-content-all): 테마 UI 변경, 아이템 2단으로 변경
This commit is contained in:
@@ -11,12 +11,6 @@ struct ContentMainIntroduceCreatorAllView: View {
|
||||
|
||||
@StateObject var viewModel = ContentMainIntroduceCreatorAllViewModel()
|
||||
|
||||
let columns = [
|
||||
GridItem(.flexible()),
|
||||
GridItem(.flexible()),
|
||||
GridItem(.flexible())
|
||||
]
|
||||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
@@ -24,10 +18,25 @@ struct ContentMainIntroduceCreatorAllView: View {
|
||||
DetailNavigationBar(title: "크리에이터 소개")
|
||||
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
LazyVGrid(columns: columns, spacing: 13.3) {
|
||||
let horizontalPadding: CGFloat = 16
|
||||
let gridSpacing: CGFloat = 16
|
||||
let itemSize = (screenSize().width - (horizontalPadding * 2) - gridSpacing) / 2
|
||||
|
||||
LazyVGrid(
|
||||
columns: Array(
|
||||
repeating: GridItem(
|
||||
.flexible(),
|
||||
spacing: gridSpacing,
|
||||
alignment: .topLeading
|
||||
),
|
||||
count: 2
|
||||
),
|
||||
alignment: .leading,
|
||||
spacing: gridSpacing
|
||||
) {
|
||||
ForEach(0..<viewModel.introduceCreatorList.count, id: \.self) { index in
|
||||
let item = viewModel.introduceCreatorList[index]
|
||||
ContentNewAllItemView(item: item)
|
||||
ContentNewAllItemView(width: itemSize, item: item)
|
||||
.onAppear {
|
||||
if index == viewModel.introduceCreatorList.count - 1 {
|
||||
viewModel.getIntroduceCreatorList()
|
||||
|
||||
Reference in New Issue
Block a user