Post not yet marked as solved
Post marked as unsolved with 6 replies, 1,087 views
Hi,
All the Lists I was developed in my app that was using Sections appears totally broken after update my project to Xcode 12 and macOS Big Sur for macOS apps.
struct ContentView: View {
var body: some View {
List {
Section(header: Text("Important tasks")) {
Text("Helloworld1")
Text("Helloworld2")
}
Section(header: Text("Other tasks")) {
Text("Helloworld3")
Text("Helloworld4")
}
}
}
}
This code works fine on iOS projects, but not in macOS projects. In macOS the section contents doesn't appear neither the preview nor app execution.
Could be a bug or I'm missing something building sectioned lists?
Thanks in advance.