Type Safely

Type Safely

See What Property Change Caused SwiftUI To Refresh a View

Daily Coding Tip 217

Type Safely's avatar
Type Safely
Nov 13, 2022
∙ Paid
coconut tree on beach shore during daytime
Photo by Nicolas Hoizey on Unsplash

It is possible to get SwiftUI to print changes that occur.

This only counts changes that cause the view’s body to be refreshed, so I’m including three controls that can be changed by the user. The scope of the call that runs Self._printChanges() determines where the changes will be detected, which is inside a VStack in…

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