SwiftUI has a new, pretty cool, **debugging** utility to help you understand what is causing a view to be reevaluated.
Call `Self._printChanges()` inside the body of a view to print out the changes that have triggered the view update.
Luca Bernardi
6,268 posts
SwiftUI at . Made in Milan, Italy.
- I can’t wait to finally share everything we have been working on with care and passion for the last year. I hope you’ll love all the features and improvements to SwiftUI. I’ll be hanging out in the Digital Lounge and Labs ready to answer all your questions. Happy #WWDC21 week!
- I’m so proud and excited to finally share what I’ve been working on: SwiftUI. We have a number of great sessions and labs during the entire week; you should check out all of them.
- List has gained a lot of new capabilities this year: - Swipe Actions - Pull-to-refresh (with `.refreshable(action:)`) - Separator customization Together with the new search API this will unlock so many more advanced use cases for your app. Try them out and send us your feedback
- In Beta 5 ObjectBinding is now defined in Combine as ObservableObject (the property wrapper is now @ObservedObject). There is also a new property wrapper @published were we automatically synthesize the objectWillChange publisher and call it on willSet.
- SwiftUI is hiring! Come work with the most talented group of people I've ever met: jobs.apple.com/en-us/details/…
- New in Seed 4 `.redacted(reason: .placeholder)` applies to `Image` as well.
- Starting in iOS 16.1 (beta 2), WidgetBundle supports having if statement with #available clause (and only this specific clause) in its body. That's pretty useful to add more widget configurations that are supported only in later OSes like ActivityConfiguration.
- Do you want to help shape the future of SwiftUI and work with an incredibly talented team of people? My team is hiring: jobs.apple.com/en-us/details/…
- This Friday we have a great new session about modeling your data in SwiftUI and some exacting new tools. Check out Data Essentials in SwiftUI for a deep dive on the topic
- Early on in my career I kept professing making small classes/methods to make them reusable. I never reused any of them. The real value in make something small is to make it easy to understand. It's the only way my brain can deal with complexity: assembling small pieces.
- Tomorrow we have our first session “Introducing SwiftUI: Building Your First App” and it’s a great one! You’ll see the framework in action but also understand the philosophy behind its design. You should not miss it! After that come find us at the SwiftUI Lab starting at 1PM.
- Tomorrow, join @ricketson_ , @mynameisraj, and me for Demystify SwiftUI. We are going to dig deep into the core tenets of SwiftUI philosophy: Identity, Lifetime, and Dependencies. developer.apple.com/videos/play/ww… We are also hosting a watch party where we’ll answer all your questions.
- We made a significant change to BindableObject: the requirement is now to publish a willChange *before* making any mutation to properties that you might read in body. As before you should publish (and mutate) on the main thread.



