Skip to content

Commit

Permalink
Fix tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
akaDuality committed Dec 10, 2023
1 parent ba0be2e commit 2a72c63
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand All @@ -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")
}
}
}
Expand Down

0 comments on commit 2a72c63

Please sign in to comment.