SwiftUI

When I put this "https://imgur.com/undefined%22code into my code this error message showing "Closure containing a declaration cannot be used with result builder 'ViewBuilder'"

What I do ?

The usual cause of the "Closure containing a declaration cannot be used with result builder ViewBuilde" error is doing something besides showing views inside the body of a SwiftUI view. If you do something like declare a function or make a network call inside the body of a SwiftUI view, you will get this error.

If you want a fix for the error, show the code for the SwiftUI view where you get this error. Without that code, no one can tell you the mistake you made that caused the error or tell you what you need to do to fix the error.

What I do ?

Show us your code first…

And please, post a feedback on the answers you get on all the threads you opened or close them.

https://pastebin.com/fZiUBFRH

this my code

SwiftUI
 
 
Q