Optional Views as @State Properties
Daily Coding Tip 059

There are aspects of SwiftUI that pose a challenge.
The some View opaque return type requires that one specific type ends up being returned. Often this is a VStack or an HStack, layout containers that lay their children out vertically or horizontally respectively. Although you may have noticed that it’s possible …


