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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’22
Reply to visionOS: ornament and resize window
Related issue: Unable to set initial/default window size WindowGroup { ContentView() .frame(width: 300, height: 400) // imperfect, the ornaments still layout as the original size } .windowStyle(.plain) .defaultSize(width: 1.5, height: 2, depth: 0, in: .meters) // no effect on plain window
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’23