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 …
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

