One Logo Pool Ball
_PermissionKit_SwiftUI · IOS API REFERENCE

AskPermissionAction

struct · iOS 26.5+ · SDK 27.1

struct AskPermissionAction

An action that sends a permission question to a parent or guardian. Use the ``EnvironmentValues/askPermission`` environment value to get an instance of this action, then call the instance to send a permission question. You can call the instance directly because it defines a ``callAsFunction(_:)`` method. For example: ```swift struct MyView: View { @Environment(\.askPermission) private var askPermission var body: some View { Button("Ask Permission") { try await askPermission(question) } } } ```

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AskPermissionAction.callAsFunction(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Topic)

All _PermissionKit_SwiftUI types →