Let’s say your view is like this:
Code while calling the view:
If you build your SwiftUI project with the above code wit will give you this error: Extra argument ‘…’ in call. The solution is to replace the let with var in the property for which the error is coming, i.e replace the following line:
with this:
The complete will look like this: