Argument passed to call that takes no arguments SwiftUI 5.1
Deprecated: pathinfo(): Passing null to parameter #1 ($path) of type string is deprecated in /home1/upleaned/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 84
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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….
1 Comment
Thank you so much for your explanation..It works well.