Skip to content

A simple SwiftUI view to manage development settings in your SwiftUI application.

License

Notifications You must be signed in to change notification settings

Thieurom/DevSettings

Repository files navigation

DevSettings

A simple SwiftUI view to manage development settings in your SwiftUI application.

This package provides a user-friendly interface for showing and toggling a few development settings that are useful during the development phase but should not be exposed in production.

MyTodosApp.mp4

Installation

To integrate DevSettings into your Xcode project, add it as a Swift Package Manager dependency: https://github.com/Thieurom/DevSettings.git

Usage

  1. Call DevSettings.start() in your app's init or in the AppDelegate's didFinishLaunching.

  2. Embed the DevelopmentSettingsView in your SwiftUI views to manage and display your settings conveniently. For example:

#if DEV
    .navigationDestination(isPresented: $showSettings) {
        DevelopmentSettingsView()
            .navigationTitle("Development Settings")
        }
    }
#endif

Credits

DevSettings makes use of the following awesome libraries:

About

A simple SwiftUI view to manage development settings in your SwiftUI application.

Resources

License

Stars

Watchers

Forks

Languages