david-swift / SettingsKit-macOS

Add a settings window to a SwiftUI macOS app
https://david-swift.github.io/SettingsKit-macOS/
MIT License
87 stars 2 forks source link
macos settings swift swiftui

SettingsKit Icon

SettingsKit

Documentation · GitHub

SettingsKit makes it easier to add a settings window to a SwiftUI app for macOS.

GitHub Banner

Table of Contents

Installation

Swift Package

  1. Open your Swift package in Xcode.
  2. Navigate to File > Add Packages.
  3. Paste this URL into the search field: https://github.com/david-swift/SettingsKit-macOS
  4. Click on Copy Dependency.
  5. Navigate to the Package.swift file.
  6. In the Package initializer, under dependencies, paste the dependency into the array.

 Xcode Project

  1. Open your Xcode project in Xcode.
  2. Navigate to File > Add Packages.
  3. Paste this URL into the search field: https://github.com/david-swift/SettingsKit-macOS
  4. Click on Add Package.

Usage

An example app project is available here. Browse the documentation here.

Thanks

Dependencies

Other Thanks