Type Safely

Type Safely

Using CustomReflectable To Debug a SwiftUI View Whenever It Refreshes

Daily Coding Tip 109

Millie Sturgeon's avatar
Millie Sturgeon
Jun 15, 2022
∙ Paid
Image by Rene Gossner from Pixabay

When you print the value of a variable, you don’t necessarily get useful information. I created a SwiftUI app project called PrintChanges. If I try to print the value of ContentView, the default View, all I get back is PrintChanges.ContentView.

I can call dump(self), but this gives me far too much information.

There is …

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture