A WWDC 26 Update on Building a Mac-assed App with SwiftUI

31 points by diktomat


kevinc

The tale of .environment(\.backgroundProminence, _) is just the kind of thing that makes SwiftUI so difficult when you're off the beaten path. Its API is super composable, but discoverability suffers compared to traditional OO view systems: Although Swift's language design is oriented toward IDE completion after a ., when there are hundreds of options in that popup, you have to hit the docs after all. View modifiers often just set environment values, and environment values' effects on particular views aren't documented and the source is closed, so in unfamiliar territory you can expect trial and error.