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
To integrate DevSettings into your Xcode project, add it as a Swift Package Manager dependency: https://github.com/Thieurom/DevSettings.git
-
Call
DevSettings.start()in your app'sinitor in the AppDelegate'sdidFinishLaunching. -
Embed the
DevelopmentSettingsViewin your SwiftUI views to manage and display your settings conveniently. For example:
#if DEV
.navigationDestination(isPresented: $showSettings) {
DevelopmentSettingsView()
.navigationTitle("Development Settings")
}
}
#endifDevSettings makes use of the following awesome libraries: