Swift: Value of type ‘Published.Publisher’ has no subscripts

Issue

If you face Value of type 'Published<Text>.Publisher' has no subscripts error, then you are probably trying to access the variable wrong way. The API has changed since beta when it was first released – a lot has changed since then, causing the issues you’re experiencing. With that being said, the breaking changes introduced is not difficult to resolve.

Solution

Depending on your use case you have to access the value with or without $sign , whether you want to access value or binding.

References

 

Buy me a coffeeOut of coffee 😱, please help!