In Assets.xcassets, there is an ability to add additional images that will automatically switch based on the Appearances. This works well for static images but I\'m
Assets.xcassets
There's an @Environment variable.
@Environment
@Environment (\.colorScheme) var colorScheme:ColorScheme
Here's how I use it to fill an empty Rectangle:
Rectangle().fill(Color.fillColor(for: colorScheme))