큐레이션, 새로운 콘텐츠 - 아이템 개수 2개에서 3개로 변경

This commit is contained in:
Yu Sung 2024-02-14 12:56:16 +09:00
parent 62904d96b1
commit c787027dcc
3 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,7 @@ struct ContentNewAllItemView: View {
} }
.frame(width: width) .frame(width: width)
.onAppear { .onAppear {
width = (screenSize().width - 40) / 2 width = (screenSize().width - 54) / 3
} }
} }
} }

View File

@ -12,6 +12,7 @@ struct ContentNewAllView: View {
@StateObject var viewModel = ContentNewAllViewModel() @StateObject var viewModel = ContentNewAllViewModel()
let columns = [ let columns = [
GridItem(.flexible(), alignment: .top),
GridItem(.flexible(), alignment: .top), GridItem(.flexible(), alignment: .top),
GridItem(.flexible(), alignment: .top) GridItem(.flexible(), alignment: .top)
] ]

View File

@ -15,6 +15,7 @@ struct ContentCurationView: View {
let curationId: Int let curationId: Int
let columns = [ let columns = [
GridItem(.flexible(), alignment: .top),
GridItem(.flexible(), alignment: .top), GridItem(.flexible(), alignment: .top),
GridItem(.flexible(), alignment: .top) GridItem(.flexible(), alignment: .top)
] ]