The escape action is built into native dialogs and navigation views and allows VoiceOver users to perform a 2-finger scrub gesture by drawing the letter Z with 2 fingers which then closes the dialog or activates the back button in a navigation view.
Use .accessibilityAction(.escape)
to close a custom dialog or view and return focus when the VoiceOver escape gesture (2 finger Z) is activated.
- N/A
Copyright 2024 CVS Health and/or one of its affiliates
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.