schornon / PresentationDetentsLeak

0 stars 0 forks source link

I’ve run into the same issue! #1

Open lukaskubanek opened 1 year ago

lukaskubanek commented 1 year ago

@schornon Hi there, I just wanted to let you know that I ran into the same issue with with little difference of using @ObservedObject instead of @EnvironmentObject for the view model in the detail/child view. See my feedback I reported to Apple as FB13194873.

schornon commented 1 year ago

Hi, @lukaskubanek. Looks like SwiftUI(iOS 17) has a few issues with memory leaks now( I thought that issue because of sheet's presentationDetents() modifier, but I got memory leak with regular .fullScreenCover() too(vm passed via @EnvironmentObject). ps. repo was created for hacking with swift's forum issue.

lukaskubanek commented 1 year ago

Thanks for sharing the additional details. Yeah, I also believe it’s a broader issue with presentation modifiers in SwiftUI, not just with sheet detents. Have you heard back from Apple?