I thought I found a workable solution but it's no good. It only works in the fallback case and it breaks the feature for watchOS8:
struct IsLuminanceReduced: EnvironmentKey {
static var defaultValue: Bool = false
}
@available(watchOS, obsoleted: 8.0)
extension EnvironmentValues {
var isLuminanceReduced: Bool {
get { self[IsLuminanceReduced.self] }
set { self[IsLuminanceReduced.self] = newValue }
}
}
If I could figure out how to tell Swift "with watchOS8, * IGNORE this…"
Maybe you can pick up this fumble and carry it across the line?