Loading...
question swift macos September 15, 2024 How to open macOS System Settings (or a specific pane) programmatically with Swift?

To programmatically open a specific pane in System Settings (formerly System Preferences) like “Privacy & Security > Camera” on macOS using SwiftUI, you can leverage the NSWorkspace class to open specific preference panes using URL schemes.