From 2a72c633334a7bb1a5716240f85879b713036aa1 Mon Sep 17 00:00:00 2001 From: Mikhail Rubanov Date: Sun, 10 Dec 2023 10:47:05 -0300 Subject: [PATCH] Fix tutorial --- .../Tutorials/AdjustableTutorial.tutorial | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Sources/AccessibilityDocumentation/Documentation.docc/Tutorials/AdjustableTutorial.tutorial b/Sources/AccessibilityDocumentation/Documentation.docc/Tutorials/AdjustableTutorial.tutorial index 16d3c4e..6102d09 100644 --- a/Sources/AccessibilityDocumentation/Documentation.docc/Tutorials/AdjustableTutorial.tutorial +++ b/Sources/AccessibilityDocumentation/Documentation.docc/Tutorials/AdjustableTutorial.tutorial @@ -12,25 +12,23 @@ @Step { Accessible element can be marked by ``UIAccessibilityTraits_/adjustable`` trait to make ``Book/accessibilityValue`` dynamic. - @Code(name: "", file: "AdjustableTutorialStep_1") + @Code(name: "", file: "AdjustableTutorialStep_1.swift") } @Step { Accessible element can be marked by ``UIAccessibilityTraits_/adjustable`` trait to make ``Book/accessibilityValue`` dynamic. - @Code(name: "", file: "AdjustableTutorialStep_2") + @Code(name: "", file: "AdjustableTutorialStep_2.swift") } @Step {` As a result the element will react on vertical swipe by calling ``Book/accessibilityIncrement()`` and ``Book/accessibilityDecrement()``. - @Code(name: "", file: "AdjustableTutorialStep_3") - } - - @Step { After each swipe the ``Book/accessibilityValue`` getter will be reread and the new value will be spoken out. - @Code(name: "", file: "AdjustableTutorialStep_3") + > Note: `AccessibilityLabel wouldn't be read again after swipe` + + @Code(name: "", file: "AdjustableTutorialStep_3.swift") } } } @@ -46,13 +44,15 @@ Distinguish behaviour in code by dynamic getter: - @Code(name: "", file: "AdjustableTutorialStep_4") + @Code(name: "", file: "AdjustableTutorialStep_4.swift") } @Step { - Switch Control requires grouping + Switch Control requires grouping: first time focus will be placed on group, after selection will move between elements in group. As a result it simulates navigation by reducing number of elements on each level. + + > Note: Watch video [how grouping simplify navigation](https://youtube.com/shorts/1l8H615EkV0?si=tKyhIGjBbR9XG9HP) - @Code(name: "", file: "AdjustableTutorialStep_5") + @Code(name: "", file: "AdjustableTutorialStep_5.swift") } } }