Post

Replies

Boosts

Views

Activity

Comment on Cannot preview SwiftUI
Same for me. But a smarter approach is to add this line to your AppDelegate so you don't run all that config code in previews: **guard ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] != "1" else { return true } ** Credit
Replies
Boosts
Views
Activity
Oct ’23