dnadoba.bsky.social

@dnadoba.bsky.social

Mac UI Performance @Apple, previously Swift on Server

One more reason to like @Observable: It isn't SwiftUI only. It works in AppKit and UIKit views too, so the same per property tracking spans all three frameworks. Deeper dive in my WWDC26 talk, Use SwiftUI with AppKit and UIKit: 🔗 developer.apple.com/videos/play...

Use SwiftUI with AppKit and UIKit - WWDC26 - Videos - Apple Developer

Discover how to incrementally adopt SwiftUI in your existing AppKit or UIKit app. We'll show you how to use the Observation framework to...

developer.apple.com

SwiftUI Perf Tip: In lazy containers (List, LazyVStack), each ForEach element should return a *constant* number of views. An AnyView or if inside the closure (0 or 1 views) hits a slow path. Fix: filter your data upfront. Debug arg: -LogForEachSlowPath YES 🔗 developer.apple.com/documentati...

ForEach | Apple Developer Documentation

A structure that computes views on demand from an underlying collection of identified data.

docs.developer.apple.com

My WWDC26 session just dropped: Use SwiftUI with AppKit & UIKit 💡 I walk through adopting SwiftUI in an existing app: Observation auto-updating your AppKit/UIKit views, embedding SwiftUI in your view hierarchy, bridging gesture recognizers, and SwiftUI scenes. 🔗developer.apple.com/videos/play...

Use SwiftUI with AppKit and UIKit - WWDC26 - Videos - Apple Developer

Discover how to incrementally adopt SwiftUI in your existing AppKit or UIKit app. We'll show you how to use the Observation framework to...

developer.apple.com