SwiftUI navigation destination is not lazy. In other words: the destination “view controller” (and all of its resources!) are constructed when you create a navigation button, not when it gets pushed onto the stack. Is this fixed?

Asked on 06/11/2025

1 search

Yes, the issue with SwiftUI navigation destinations not being lazy has been addressed. In the session titled "What’s new in SwiftUI" at WWDC 2025, it was mentioned that SwiftUI now delays loading the contained views until they're about to appear. This behavior is particularly beneficial when using lazy stacks inside ScrollViews, as it helps improve performance by not loading views until necessary. You can find more details in the session What’s new in SwiftUI (08:08).