SwiftUIPager icon indicating copy to clipboard operation
SwiftUIPager copied to clipboard

[FEAT] Do not deallocate page when scrolling to next page

Open ramunasjurgilas opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. As example I have 4 pages: A, B, C and D. When scrolling to page D and loading required content and it is presented. After, that I am scrolling to page A and scrolling back to page D the screen gets recreated and re-loading required content once again.

Describe the solution you'd like Implement functionality which would support, that content should not be deallocated when scrolling to other page.

ramunasjurgilas avatar Mar 01 '24 06:03 ramunasjurgilas

You can load the content on demand in the View above and pass it down. Or just use the built-in TabView in .paging mode which already has this very memory intensive behaviour.

malhal avatar Oct 12 '25 14:10 malhal