SwiftUIPager
SwiftUIPager copied to clipboard
[FEAT] Do not deallocate page when scrolling to next page
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.
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.