Contents

ryu0118/userdefaultseditor

A SwiftUI View for Easily Modifying UserDefaults Values for Debugging.

Key Filtering

You can filter which keys are displayed using the keyFilter parameter. This is useful for debugging specific parts of your app or hiding sensitive data.

// Only show keys that start with "app"
UserDefaultsEditor(
    userDefaults: .standard,
    keyFilter: { key in key.hasPrefix("app") },
    presentationStyle: .push
)

// Hide system keys and only show custom keys
UserDefaultsEditor(
    userDefaults: .standard,
    keyFilter: { key in 
        !key.hasPrefix("NS") && 
        !key.hasPrefix("Apple") && 
        !key.hasPrefix("com.apple")
    },
    presentationStyle: .modal
)

Package Metadata

Repository: ryu0118/userdefaultseditor

Default branch: main

README: README.md