One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

EventModifiers

struct · iOS 13.0+ · SDK 27.1

@frozen struct EventModifiers

A set of key modifiers that you can add to a gesture.

Members (10)

get · iOS 13.0+

numericPad

TypeScript
get numericPad(): EventModifiers
Swift declaration
static let numericPad: EventModifiers

Any key on the numeric keypad.

get · iOS 13.0+

all

TypeScript
get all(): EventModifiers
Swift declaration
static let all: EventModifiers

All possible modifier keys.

get · iOS 13.0+

shift

TypeScript
get shift(): EventModifiers
Swift declaration
static let shift: EventModifiers

The Shift key.

get · iOS 13.0+

option

TypeScript
get option(): EventModifiers
Swift declaration
static let option: EventModifiers

The Option key.

get · iOS 13.0+

command

TypeScript
get command(): EventModifiers
Swift declaration
static let command: EventModifiers

The Command key.

get · iOS 13.0+

control

TypeScript
get control(): EventModifiers
Swift declaration
static let control: EventModifiers

The Control key.

get · iOS 13.0+

capsLock

TypeScript
get capsLock(): EventModifiers
Swift declaration
static let capsLock: EventModifiers

The Caps Lock key.

get · iOS 13.0+ · Deprecated in iOS 15.0

function

TypeScript
get function(): EventModifiers
Swift declaration
static let function: EventModifiers

The Function key.

init · iOS 13.0+

init

TypeScript
init(rawValue: number): EventModifiers
Swift declaration
init(rawValue: Int)

Creates a new set from a raw value. - Parameter rawValue: The raw value with which to create the key modifier.

get · iOS 13.0+

rawValue

TypeScript
getRawValue($self: EventModifiers): number
Swift declaration
let rawValue: Int

The raw value.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →