SwiftUIListSeparator
SwiftUIListSeparator copied to clipboard
Improve CPU/Memory Utilization
Describe the bug The current solution redraws on every scrollview contentOffset update which temporarily spikes CPU usage while scrolling. Custom divider lines are also redrawn more than once causing an unnecessary memory footprint increase.
To Reproduce Steps to reproduce the behavior:
- Scroll a long list up and down repetitively while monitoring CPU/Memory usage
Expected behavior The CPU/Memory usage while currently reasonable should be dramatically improved by limiting redraw cycles