
Argument passed to call that takes no arguments SwiftUI 5.1
If your getting this error it could be because you have added to many subviews to the main view of your SwiftUI Views body.
You are only allows 10 subviews in the main view but you can get around this by putting them into groups like this:
VStack {
Group {
Text("1")
Text("2")
Text("3")
Text("4")
Text("5")
Text("6")
}
Group {
Text("7")
Text("8")
Text("9")
Text("10")
Text("11")
}
}
Removing the Groups in the image below and you get the error because you have 11 Text Views….

