Follow

If Self._printChanges() was your best friend debugging views.

Go ahead and try the new Self._logChanges() instead!

var body: some View {
DEBUG
let _ = Self._logChanges()

// … 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

· Edited · · Ivory for Mac · 3 · 60 · 144