Swift Logo

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:

Removing the Groups in the image below and you get the error because you have 11 Text Views….





One thought on “Argument passed to call that takes no arguments SwiftUI 5.1

  1. S Sasidharan February 24, 2020 at 1:43 pm

    Thank you so much for your explanation..It works well.

Leave a Reply

Name *
Email *
Website