Ternary operator is great, but it can be hard to remember for beginners.
Here’s a helpful mnemonic: WTF
expr0 ? expr1 : expr2 ➡️ What ? True : False
Thanks to @twostraws for mentioning @scottmichaud’s invention
Choosing between LazyVStack, List, and VStack in SwiftUI
For simple cases, VStack is the best choice due to its simplicity.
LazyVStack is better for handling large numbers of elements since it loads items lazily.
List also implements lazy loading, while providing additional features: it adapts to each operating system's design and includes native elements like disclosure indicators.
Source:
https://www.donnywals.com/choosing-between-lazyvstack-list-and-vstack-in-swiftui/