SwiftUI - What has changed in what view - Printing view updates

October 31, 2022

SwiftUI - What has changed in what view - Printing view updates

SwiftUI - What has changed in what view

To know what has changed in what View in SwiftUI all you have to do is add this line to your body of the View

let _ = Self._printChanges()

One thing to take care of is, remove any reference to this line of code before submitting your app to the AppStore. It is a private API, so your app might get rejected