EngineeringMode is a highly customizable iOS package to make debugging common things like Notifications, UserDefaults, Permissions and Networking easier.
EngineeringMode
can be added to any SwiftUI view easily. Typically, it's used with a Sheet.
import EngineeringMode
//...
.sheet(isPresented: $showingEngineeringModeSheet) {
EngineeringMode()
}
To add a custom view to the existing Engineering Mode screen, just pass in customViews
and customViewTitles
. Optionally, if you want Custom Views to show before the other views, then add showCustomViewsFirst
.
EngineeringMode(
customViews: [AnyView],
customViewTitles: [String],
showCustomViewsFirst: Bool
)
customViews
takes in anAnyView
- please cast it to that.customViews
andcustomViewTitles
should have the same number of array elements! Each custom view should have a title, otherwise the app will crash.
Example
EngineeringMode(
customViews: [AnyView(MyCustomView())],
customViewTitles: ["Test"],
showCustomViewsFirst: true
)