Trigger
public final class Trigger
A trigger that can be used to manually fire an accessibility focus.
-
The type of accessibility notification that will be triggered.
Declaration
Swift
public var notificationType: UIAccessibility.Notification
-
An optional identifier for the trigger.
Declaration
Swift
public var identifier: AnyHashable?
-
Creates a new trigger for the purpose of changing accessibility focus.
Declaration
Swift
public init( notificationType: UIAccessibility.Notification = .layoutChanged, identifier: AnyHashable? = nil )
Parameters
notificationType
Type of accessibility notification to trigger. Defaults to
.layoutChanged
. Limited to.layoutChanged
or.screenChanged
.identifier
An optional identifier for the trigger. Defaults to
nil
. -
Manually fire the trigger
Declaration
Swift
public func focus()