Open lukaskubanek opened 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.
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?
@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.