Follow
If Self._printChanges() was your best friend debugging #SwiftUI views.
Go ahead and try the new Self._logChanges() instead!
var body: some View {
#if DEBUG
let _ = Self._logChanges()
#endif
// … rest of view body …
}
It does the exact same thing but logs at the info level to the "com.apple.SwiftUI" which is cleaner (and easier to filter) in your console ✨
*In Xcode 15.1 and up