Programmatically open a new Window in SwiftUI on macOS Ventura (13)

Mark van Wijnen
7 min readJul 11, 2022
Photo by Alesia Kazantceva on Unsplash

Since macOS Big Sur(11) we are able to open new windows using the URL scheme, but with the arrival of macOS Ventura (13) we finally have a way to do it programmatically.

In this story I am going to show you how by building a note taking app called Scribble. Every note, ‘scribble’, can be opened in a new window when you right click on it and choose…

--

--

Mark van Wijnen

macOS/iPadOS/iOS/watchOS/visionOS developer and SwiftUI enthousiast. “Stay Hungry, Stay Foolish!” — Steve Jobs