Clearing UserDefaults during macOS app development
Quick tip for macOS app development: clear persisted UserDefaults (including SwiftUI @AppStorage) via Terminal with the defaults command. Delete the whole app domain (defaults delete com.example.MyApp) or a specific key, and apply the same to custom suites/app groups to reset state or test onboarding.