johnpatrickmorgan / FlowStacks

FlowStacks allows you to hoist SwiftUI navigation and presentation state into a Coordinator
MIT License
783 stars 56 forks source link

Huge Memory Spike When Taking Screenshot #59

Open dinoconstantinou87 opened 10 months ago

dinoconstantinou87 commented 10 months ago

I've noticed that when you present many covers or sheets in the example app and take a screenshot there is a huge spike in memory which when you have enough sheets/covers presented (above 10) causes the app to crash. This doesn't seem to happen when pushing views onto the navigation stack.

I've also tested using .sheet directly in an example app and there doesn't seem to be the same issue. Any help resolving this would be greatly appreciated.