Post

Replies

Boosts

Views

Activity

Reply to Swift UI on iOS 14 not assigning new object to @State property
Seems at this point to be a bug with Xcode 12 and the new framework. I was able to work around the issue by displaying the value of assignment in a View. I added the following code between lines 8 and 9 which fixed the issue and had the value updating properly: Text("\(assignment?.description ?? "")" .hidden() I've sent in a bug report (FB7823148) through Feedback Assistant.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’20