Post

Replies

Boosts

Views

Activity

Reply to watchOS 9.2 breaks the complicationForeground() modifier
@ViewBuilder func complicationLayer(_ layer: Compatibility.ComplicationLayer) -> some View { if #available(watchOS 9.2, *) { switch layer { case .foreground: self case .background: self.complicationForeground() } } else { switch layer { case .foreground: self.complicationForeground() case .background: self } } } It's ugly but it works. I don't want Apple to reverse its semantics again, even if it's wrong. So be it.
Dec ’22