Post

Replies

Boosts

Views

Activity

Reply to How to open a window in SwiftUI?
I have found this also to work. Although I think SwiftUI needs a much better way of supporting multiple macOS Windows. In your AppStruct, although any persistent struct or class can hold a window. Limitations: No idea how to let the system determine the window position or whether it will autosave window information. struct Radio_2App: App {     let someWindow = NSWindow( contentRect: NSRect(x: 0, y: 0, width: 580, height: 300), styleMask: [.titled, .closable], backing: .buffered, defer: false)     var body: some Scene {         WindowGroup() { SomeContentView()         }     func openWindow() {         someWindow.contentView = NSHostingView(rootView: SomeOtherView())         self.someWindow.makeKeyAndOrderFront(nil)     } }
Aug ’21
Reply to Macbook 16 Clamshell + External Display Bug
It has probably changed the refresh rate. I have the same issue on my 2018 MBPro. I had to resort to plugging the display only on the left side ports, even though before this update the monitor always worked fine. Try this go to System Preferences > Displays, then hold down the Option key and click the "Scaled" radio button. There should be a drop down to show Refresh Rates. If the drop down is missing then click on "Show low resolution modes". On my system for no reason at all it goes to 30hz instead of the native 75hz. Sometimes it lets me change it, sometimes it doesn't.
Jun ’20