I have this adaptive LazyVGrid
setup, the problem is that I would like the small cells to wrap up into the space of 1 big cell but I can't find a proper way to do that
This is how my grid
import SwiftUI
struct SubjectsView: View {
@Environment(\.managedObjectContext) private var moc
@FetchRequest(entity: Subject.entity(), sortDescriptors: []) private var subjects: FetchedResults<Subject>
var body: some View {
ScrollView(.vertical, showsIndicators: false) {
LazyVGrid(columns: [GridItem(.adaptive(minimum: 360), spacing: 16, alignment: .top)], spacing: 16) {
ForEach(subjects, id: \.self) { subject in
SubjectCell(subject: subject)
}
Spacer()
}.padding(15)
}
}
}