When i use on my swiftUI app the (@Binding) Some error coming:
Error: Property wrappers are not yet supported on local properties
And: Closure containing a declaration cannot be used with function builder 'ViewBuilder'
Any body Help me?
When i use on my swiftUI app the (@Binding) Some error coming:
Error: Property wrappers are not yet supported on local properties
And: Closure containing a declaration cannot be used with function builder 'ViewBuilder'
Any body Help me?
Unfortunately, the message is clear: that will be possible probably in a future version of SwiftUI.
In the meantime, have a look here for a workaround (I didn't test it yet):
Could you also show the code where you get errors, there may be other solutions to solve it, like declaring outside.
I think you declared your Property wrapper outside of a view struct (like on the to level of the Playground code) which is not supported.