Skip to content

v1.1

Latest

Choose a tag to compare

@Mx-Iris Mx-Iris released this 07 Jun 16:30

New version adds convenient access to SwiftUI and includes entry points for all extension settings modules.

struct ContentView: View {
    
    @Environment(\.openSystemSettings)
    private var openSystemSettings
    
    var body: some View {
        VStack {
            Button {
                openSystemSettings(.accessibility(.audio))
            } label: {
                Text("Open System Settings")
            }
        }
        .padding()
    }
}
public enum ExtensionSettingsTab {
    case primary
    // System(OS) Extensions
    case camera
    case driver
    case network
    case endpointSecurity
    // FSKit(FS) Extensions
    case fileSystem
    // App(NS) Extensions
    case action
    case fileProviders
    case finder
    case touchBar
    case photoProjects
    case photosEditing
    case quickLook
    case sharing
    case spotlight
    case spotlightImporters
    case xcodeSourceEditor
    // Legacy Plugins
    // These extension points are standins for non AppExtension plugins that need to show in Settings
    case inputMethods
    case colorPanels
    case dockTiles
    case smartCardReaders
 ///...
}