Hello,
I’m trying to implement the following in a Multiplatform project:
struct ContentView: View {
var body: some View {
List {
Section(header: Text("Main Treats"), footer: Text("More comming soon..")){
ForEach(0..<5){
Text("\($0)")
.tag($0)
}
}
#if os(iOS)
.listStyle(GroupedListStyle())
#endif
}
}
}
But I’m getting this error:
Any of you knows how can fix this error?