Post

Replies

Boosts

Views

Activity

Comment on How to access variable in separate function
You have not read carefully: I moved changed in the scope of Practise. To have func outside of Practise, you need to use Environment var, not State var. See here detailed explanations: https://stackoverflow.com/questions/56718802/how-to-update-a-swiftui-view-state-from-outside-uiviewcontroller-for-example
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21