Swift Package Index


Mac Settings SwiftUI View


  • The latest stable release is 0.1.1. Released about 2 months ago.
  • The last commit to main was about 2 months ago.

Swift Version Compatibility

  • 0.1.1 and main
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 0.1.1 and main
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

MacSettings

Mac Settings SwiftUI View

Example

Usage

import SwiftUI
import MacSettings

@main
struct MainApp: App {
    @SceneBuilder
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
        Settings {
            MacSettings {
                MacSettingsItem(title: "General",
                                image: "gearshape",
                                content: generalSettings)
                MacSettingsItem(title: "Appearance",
                                image: "flame",
                                content: appearanceSettings)
                MacSettingsItem(title: "Content",
                                image: "heart",
                                content: contentSettings)
            }
        }
    }
    
    var generalSettings: some View { ... }
    var appearanceSettings: some View { ... }
    var contentSettings: some View { ... }
}