Post

Replies

Boosts

Views

Activity

Reply to Fixed SwiftUI window sizes in macOS with Xcode 14 and Ventura for macOS 11/12 targets
You can make the .windowResizability(.contentSize) scene modifier conditional like so: extension Scene {     func windowResizabilityContentSize() -> some Scene {         if #available(macOS 13.0, *) {             return windowResizability(.contentSize)         } else {             return self         }     } } And then use it on WindowGroup this way: WindowGroup { ... } .windowResizabilityContentSize()
Nov ’22