Tag: allowsDirectInteraction
1 post
Tag: allowsDirectInteraction
1 post

Imagine playing a piano with VoiceOver. You'd have to find the key you want to play and then double tap. It would be a very difficult experience. With the .allowsDirectInteraction accessibility trait, VoiceOver passes through touch gestures. Use carefully! And only when it really makes sense to be able to handle controls directly with touch. Other examples could be a drawing app or some games.
All Tags
AccessibilityAccessibility InspectorAccessibility ModifiersAppleAssistiveTouchAudio GraphsBold TextClassic InvertDynamic TypeFull Keyboard AccessGAADGAAD2022GAAD22HIGHuman Interface GuidelinesIncrease ContrastInterface BuilderLarge Content ViewerLarger TextMagnifierNSSpainXReduce MotionRotorScreen CurtainSmart InvertSpeak ScreenSwiftUISwitchSwitch ControlUIAccessibilityUIAccessibilityCustomActionUIKeyCommandUIKitUISwitchVoice ControlVoiceOverWWDCWWDC22WWDC23XcodeZooma11ya11yTOconfaccessibility identifieraccessibilityActionaccessibilityActivationPointaccessibilityAdjustableActionaccessibilityChildrenaccessibilityContaineraccessibilityElementaccessibilityElementsaccessibilityElementsHiddenaccessibilityFrameaccessibilityIdentifieraccessibilityIgnoresInvertColorsaccessibilityLabelaccessibilitySpeechIPANotationaccessibilitySpeechPitchaccessibilitySpeechPunctuationaccessibilitySpeechSpellOutaccessibilityTraitsaccessibilityUserInputLabelsaccessibilityValueaccessibilityViewIsModaladjustableallowsDirectInteractionhapticiOSiPadOSisModalisSearchFieldisSelectedisSummaryElementisTabBarkeyboardShortcutplaysSoundsimulatorspeechPitchstartsMediaSessionupdatesFrequentlyvisionOS