wantsPriorityOverSystemBehavior
A Boolean value that indicates whether the key command takes precedence over text input or focus movements.
Declaration
var wantsPriorityOverSystemBehavior: Bool { get set }Discussion
In iOS 15 and later, the system delivers physical keyboard events to the text input or focus systems first. If those systems don’t handle the keyboard input, the system delivers the events to your app’s key commands. This delivery order lets the system handle keyboard events that might affect other parts of the user experience. If the value of this property is true, the system reverses that order and delivers events to your key commands first and then to the text input and focus systems. The default value of this property is false.
Prior to iOS 15, the system delivered keyboard events to your key command objects first, and then to the text input or focus systems. If your app links against iOS 14 SDK or earlier, your app retains that behavior, even when running on iOS 15 or later.