Screenshots showing issues with SwiftUI List vs VStack components

Using a VStack to render items can visually be accurately defined, but rendering is slow because VStack prebuilds all nodes regardless of visibility.  So if you want to display 1000 rows, all those rows will be prebuilt before the component is displayed, regardless of the visibility status of each row, resulting in a noticable "freeze" on the screen.  But it looks correct:

Using a List to display the same content is fast because List only builds those rows that will be rendered on the screen, however at this time it is buggy disallowing precise visual calibration (see unwanted white space around rows):


Comments