Docs
Sheets and AlertsPro

Permission PrimerNew

Explain-then-ask for notifications, location, the camera or photos, then answer what iOS says: granted, or Open Settings.

$npx swiftpieces add PermissionPrimer

Needs a SwiftPieces Pro license: npx swiftpieces login first.

Open in the Pro library View pricing Live preview in every Pro style, and its source with SwiftPieces Pro.
ProPattern · Sheets and AlertsiOS 17+Themed by Pro's design system
Type
PermissionPrimer
Inside
Reason and benefits, Alert preview, Real permission request, Open Settings when denied
Install, with a Pro license
npx swiftpieces add PermissionPrimer
Depends on
Pro's Design System, which installs with it

A primer shown before a system permission prompt. It explains why the app needs the permission, lists what it makes possible, draws the alert iOS will show next, then requests the real permission. Granted turns to a check and calls back; denied explains where to change it and offers Open Settings, and turns granted when the person comes back having allowed it.

Its SwiftUI source comes with SwiftPieces Pro: Permission Primer in the Pro library.

All patterns →
SwiftPiecesPro

Build the whole app with one library.

Production-ready screens, whole flows, complete app templates, a Build Kit your agent follows and Pro remixing.

54 screens · 46 patterns · 48 flows · 12 templates · 31 Build Kit skills

Explore Pro