File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,19 @@ import SystemSettingsNavigator
2828
2929// Example: Open the Accessibility pane audio tab
3030// AppKit
31- NSWorkspace.shared .openSystemSetting (.accessibility (.audio ))
31+ NSWorkspace.shared .openSystemSettings (.accessibility (.audio ))
3232// UIKit
33- UIApplication.shared .openSystemSetting (.accessibility (.audio ))
33+ UIApplication.shared .openSystemSettings (.accessibility (.audio ))
3434// SwiftUI
3535struct ContentView : View {
3636
37- @Environment (\.openSystemSetting )
38- private var openSystemSetting
37+ @Environment (\.openSystemSettings )
38+ private var openSystemSettings
3939
4040 var body: some View {
4141 VStack {
4242 Button {
43- openSystemSetting (.accessibility (.audio ))
43+ openSystemSettings (.accessibility (.audio ))
4444 } label : {
4545 Text (" Open System Settings" )
4646 }
You can’t perform that action at this time.
0 commit comments