How to enable purple warnings for SwiftUI in old Xcode project

Hi,

When writing SwiftUI code in fresh Xcode project with "Interface: SwiftUI" I can see really useful SwiftUI warnings like:

[SwiftUI] Publishing changes from within view updates is not allowed, this will cause undefined behavior.

but I'm also developing an application which was created with "interface: Storyboard" and I would like to enable those warnings too, how can I do it?

Thanks:)

Same here, the warnings are not showing up when using a legacy starting project (using storyboards). I think it's relevant for anyone transitioning to Swift UI gradually with their projects.

How to enable purple warnings for SwiftUI in old Xcode project
 
 
Q