Only relamquad's answer with UIKit gave me the most confidence and it works. With the flakiness from version to version for SwiftUI's onAppear, just a simple syntax change and everything stops working, relying solely on SwiftUI is too risky. I can't believe this is not high on the bug list. onAppear is such an essential part
Post
Replies
Boosts
Views
Activity
I'm using XCode 12 beta 4 and creating a new SwiftUI project. I also get this error trying to run on simulator the first time. I uninstalled the app, checked @letiendungbk suggestion but all the settings are exactly like what he said so I didn't change anything. I reran and it (the sample) works now. Strange
System Information
macOS Version 11.0 (Build 20A5343i)
Xcode 12.0 (17200.1)