-
-
Notifications
You must be signed in to change notification settings - Fork 34
NukeUI + Introspect issue #42
Description
Hello,
First off - thanks for the effort on the library - really appreciate it!
In my project I'm using NukeUI and Introspect
I have a view that uses about 10 LazyImage
s to download and show an mp4 and another piece of that view that responds to a sheet modifier that utilizes detents on iOS 15 via Introspect, as they're not yet in SwiftUI.
The issue that I'm seeing is that if I show that view via a NavigationView
more than 3 times, the mp4s no longer load and play.
Additionally, inspecting the memory graph, shows that even if I navigate away from that view, there are about 60 LazyImage
and VideoPlayerView
sticking around in memory, which I assume is the crux of the issue.
Commenting out the Introspect portion fixes the issue and everything works as expected, but I need it in my app for other things as well.
Now, this might very well be an Introspect issue and I'm raising an issue in that repo as well, but just wanted to see whether the maintainer here might have any insights into why this is happening.
Code that reproduces the issue
Tested on iOS 15.4.1 on iPhone 12 Pro Max, compiled with Xcode 13.3.1 (interestingly the simulator doesn't show the issue)
NukeUI version: 0.8.1
Introspect version: 0.1.4
Video of the issue:
RPReplay_Final1652631340.mov
Memory graph:
Thanks!