Tag: startsMediaSession
2 posts
Tag: startsMediaSession
2 posts
There is another accessibility trait: .playsSound, that does a similar thing than .startsMediaSession. This one seems more suitable for buttons that have their own sound effects when interacting with them, like it often happens in games.

When interacting with a button with VoiceOver, the accessibility label is repeated to the user. If you are playing some audio, it could be difficult to listen to it properly. To avoid that, you can add the .startsMediaSession accessibility trait.
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