One Logo Pool Ball
PermissionKit · IOS API REFERENCE

PermissionChoice

struct · iOS 26.0+ · SDK 27.1

struct PermissionChoice

A class that uniquely identifies a specific, statically defined permission choice. Each `PermissionQuestion` contains a set of possible answer choices, each corresponding to a globally unique identifier that you can interpret. `PermissionChoice` provides two predefined options for responding to permission requests: ```swift let approveChoice = PermissionChoice.approve let declineChoice = PermissionChoice.decline ``` Use these static properties to create responses to permission questions in your app. You can interpret the context and meaning of each choice based on the specific `PermissionQuestion` being answered. ```swift public static let approve: PermissionChoice public static let decline: PermissionChoice ```

Members (7)

get · iOS 26.0+

id

TypeScript
get id(): string
Swift declaration
var id: String { get }

A unique identifier for this choice. - Requires: This identifier must be globally unique, including across devices and on any server/s.

get · iOS 26.0+

title

TypeScript
get title(): string
Swift declaration
var title: String { get set }

The title of the choice that's displayed to the person by the system.

set · iOS 26.0+

title

TypeScript
set title(value: string)
Swift declaration
var title: String { get set }

The title of the choice that's displayed to the person by the system.

get · iOS 26.0+

answer

TypeScript
get answer(): PermissionChoice_Answer
Swift declaration
var answer: PermissionChoice.Answer { get set }

The type of answer this choice represents. The system uses this value to style how the choice appears to the person making the decision.

set · iOS 26.0+

answer

TypeScript
set answer(value: PermissionChoice_Answer)
Swift declaration
var answer: PermissionChoice.Answer { get set }

The type of answer this choice represents. The system uses this value to style how the choice appears to the person making the decision.

get · iOS 26.0+

approve

TypeScript
static get approve(): PermissionChoice
Swift declaration
static let approve: PermissionChoice

The system-preferred choice to approve a permission request.

get · iOS 26.0+

decline

TypeScript
static get decline(): PermissionChoice
Swift declaration
static let decline: PermissionChoice

The system-preferred choice to decline a permission request.

Skipped declarations

No declarations were skipped in this snapshot.

All PermissionKit types →