SwiftUI previews can mask memory leaks because they simulate a different lifecycle than real devices. Objects may persist longer on actual hardware, and leaks only surface during real navigation flows. The recommended fix is to test on device early and use memory graph debugging regularly rather than relying solely on previews.

1m watch time

Sort: