Build: Lazy Stacks Demo
This screen shows a vertical list and a horizontal list using LazyVStack and LazyHStack. It helps to display many items efficiently by loading views only when needed.
Target UI
------------------------- | Lazy Stacks Demo | |-----------------------| | Vertical List: | | 1. Item 1 | | 2. Item 2 | | 3. Item 3 | | ... | | | | Horizontal List: | | [Item 1] [Item 2] ... | -------------------------
Use LazyVStack inside a ScrollView for vertical list of 50 items labeled 'Item 1' to 'Item 50'.
Use LazyHStack inside a horizontal ScrollView for horizontal list of 20 items labeled 'Item 1' to 'Item 20'.
Each item should be a rounded rectangle with a light gray background and the item label centered.
Add padding around stacks for spacing.
The screen should have a title 'Lazy Stacks Demo' at the top.