-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7702bad
commit 2c79091
Showing
11 changed files
with
204 additions
and
55 deletions.
There are no files selected for viewing
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
Sources/AccessibilityDocumentation/Documentation.docc/Articles/ControlHierarchy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ControlHierarchy | ||
|
||
- ``Book/isAccessibilityElement`` | ||
- ``Book/accessibilityElementsHidden`` | ||
- ``Book/accessibilityViewIsModal`` | ||
- ``Book/shouldGroupAccessibilityChildren`` | ||
|
||
## Overview | ||
|
||
<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@--> | ||
|
||
### Section header | ||
|
||
<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@--> |
81 changes: 81 additions & 0 deletions
81
Sources/AccessibilityDocumentation/Documentation.docc/Articles/DescribeElements.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Describe elements | ||
|
||
Core properties that describes element for VoiceOver | ||
|
||
To describe element we can use label, value and trait (like a type) | ||
|
||
## Label | ||
|
||
- ``Book/accessibilityLabel`` | ||
|
||
The main property is `accessibilityLabel` – defines element's name. It should be name in one or two words for buttons or represents full text from `UILabel` | ||
|
||
**Examples:** | ||
- *1.4 billions views* – just the fact under the video | ||
- *Never Gonna Give You Up* song title that describes screen's content | ||
- *Next* for button that skip a song in audio player | ||
- *Pizza Pepperoni* for cell in the menu | ||
- *Size* for segmented control on product card | ||
- *Brightness* for slider in Control Center | ||
|
||
> Tip: Voice Control can have synonims for label. Check ``Book/accessibilityUserInputLabels`` for more details. | ||
## Value | ||
|
||
- ``Book/accessibilityValue`` | ||
|
||
`AccessibilityValue` is optional second part of the element's description. It can contain additional details or represents current value of the element | ||
- *1.4 billions views* – no value for regular text is ofter situation | ||
- *Never Gonna Give You Up, **Rick Astley*** | ||
- *Next, **Childish Gambino – Redbone*** can add detalization about next track. Visually you can see a cover of the song, but for VoiceOver it is better to provide text alternative. Different approaches, but same experience. | ||
- *Pizza Pepperoni, **Pepperoni, Mozzarella*** | ||
- *Size, **Medium*** | ||
|
||
> Note: Label and Value separates by comma automatically, it produced short pause between them | ||
> Tip: You can add additional commas in label or value, pronunciation will use them for short pauses | ||
### Label vs Value | ||
|
||
Important to understand differences between label and value. Label should be as short as possible: Voice Control will use it as HUD over UI to name things for feature voice commantds, but not show value part, because we expect that it's already presented for user on screen. <doc:VoiceControl> | ||
|
||
Otherwise, adjustable elements allow to change only value part and after change only value part will be pronounced to user. <doc:AdjustableElements> | ||
|
||
## Trait | ||
- ``Book/accessibilityTraits`` | ||
|
||
The last part of element's description is trait. Some traits may add additional text to element's description, other just changes behaviour. | ||
|
||
An element can have no trait - regular text, for e.g. | ||
|
||
The most common trait is ``UIAccessibilityTraits_/button`` – it helps user to understand that he can interact with an element. | ||
|
||
**Samples:** | ||
- *1.4 billions views* – regular text can have no traits. Sometimes ``UIAccessibilityTraits_/staticText`` can be used, but it adds no special descriptions to the end. | ||
- *Never Gonna Give You Up, Rick Astley. **Header*** – Header describes that the element is main on the page and other controls are connected to it | ||
- *Play, Childish Gambino – Redbone. **Button*** – the Button works like button, can be activated by double tap for VoiceOver, should be focused by Switch Control or Voice Control can present tooltip over the interactive element. | ||
- *Pizza Pepperoni, Pepperoni, Mozzarella. **Button*** – tappable cell should contain button semantic, that's how user will understand that the cell is interactive and can be tapped. | ||
- *Size, Medium. **Adjustable*** – VoiceOver can change inner value by vertical swipe. | ||
|
||
> Note: Label and Value are separated by comma, but trait represents another sentence and separated by dot automatically. | ||
> Important: Label and Value are `String` properties, but Trait can be selected only from limited amount of variants. Not duplicate trait's textual description inside Label or Value, because different technologies uses trait in different manear, not only for textual description. | ||
// TODO: Draw full scheme | ||
|
||
## Topics | ||
|
||
Traits that add additional text: | ||
|
||
- ``UIAccessibilityTraits_/button`` | ||
- ``UIAccessibilityTraits_/link`` | ||
- ``UIAccessibilityTraits_/header`` | ||
- ``UIAccessibilityTraits_/adjustable`` | ||
- ``UIAccessibilityTraits_/tabBar`` | ||
- ``UIAccessibilityTraits_/toggleButton`` | ||
- ``UIAccessibilityTraits_/searchField`` | ||
- ``UIAccessibilityTraits_/image`` | ||
|
||
Other traits can add text to diferent place in description | ||
- ``UIAccessibilityTraits_/selected`` | ||
- ``UIAccessibilityTraits_/notEnabled`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Sources/AccessibilityDocumentation/Documentation.docc/Articles/Navigation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Navigation | ||
|
||
<!--@START_MENU_TOKEN@-->Summary<!--@END_MENU_TOKEN@--> | ||
|
||
## Overview | ||
|
||
<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@--> | ||
|
||
### Section header | ||
|
||
<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@--> |
18 changes: 18 additions & 0 deletions
18
...es/AccessibilityDocumentation/Documentation.docc/Articles/SpecificProperties.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Specific Properties | ||
|
||
Different disabilities requires different way of perceptions and control. As a result some technologies provides additional properties for finergaind control. | ||
|
||
|
||
## VoiceOver | ||
|
||
<doc:AdjustableElements> allows to control the element by vertical swipe, but in useful only for blind persons. | ||
|
||
## Switch Control | ||
|
||
- ``Book/accessibilityNavigationStyle`` | ||
|
||
## Voice Control | ||
|
||
In regular vocabulary we use a lot of synonyms. To simplify interaction Voice Control can use ``Book/accessibilityLabel`` alongside alternatives from `UserInputLabel` | ||
|
||
- ``Book/accessibilityUserInputLabels`` |
20 changes: 20 additions & 0 deletions
20
Sources/AccessibilityDocumentation/Documentation.docc/Articles/VisualProperties.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Visual Properties | ||
|
||
Every technologies requires understanding of graphical properties for different apporoach. | ||
|
||
|
||
|
||
## Overview | ||
|
||
<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@--> | ||
|
||
### Section header | ||
|
||
## Topics | ||
- ``Book/accessibilityFrame`` | ||
|
||
- ``Book/accessibilityActivationPoint`` | ||
|
||
- ``Book/accessibilityPath`` | ||
|
||
- ``Book/accessibilityRespondsToUserInteraction`` |
19 changes: 0 additions & 19 deletions
19
Sources/AccessibilityDocumentation/Documentation.docc/Tutorial Table of Contents.tutorial
This file was deleted.
Oops, something went wrong.
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
...cessibilityDocumentation/Documentation.docc/Tutorials/Tutorial Table of Contents.tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@Tutorials(name: "How to adopt your application") { | ||
@Intro(title: "Few steps") { | ||
|
||
To adopt your application for assistive technologies you should forward few steps: | ||
Simplify and group elements in UI's hierarchy | ||
Add labels to elements | ||
Add additional properties | ||
|
||
<!-- @Image(source: <#file#>, alt: "<#accessible description#>")--> | ||
} | ||
|
||
@Chapter(name: "Desribe elements") { | ||
Simplifies navigation and control over a complex element for VoiceOver | ||
|
||
<!-- @Image(source: <#file#>, alt: "<#accessible description#>")--> | ||
|
||
@TutorialReference(tutorial: "doc:AdjustableTutorial") | ||
} | ||
|
||
@Chapter(name: "Control hierarchy") { | ||
Simplifies navigation and control over a complex element for VoiceOver | ||
|
||
<!-- @Image(source: <#file#>, alt: "<#accessible description#>")--> | ||
|
||
@TutorialReference(tutorial: "doc:AdjustableTutorial") | ||
} | ||
|
||
@Chapter(name: "Adjustable elements") { | ||
Simplifies navigation and control over a complex element for VoiceOver | ||
|
||
<!-- @Image(source: <#file#>, alt: "<#accessible description#>")--> | ||
|
||
@TutorialReference(tutorial: "doc:AdjustableTutorial") | ||
} | ||
|
||
@Chapter(name: "Tweak visual propeties") { | ||
Simplifies navigation and control over a complex element for VoiceOver | ||
|
||
<!-- @Image(source: <#file#>, alt: "<#accessible description#>")--> | ||
|
||
@TutorialReference(tutorial: "doc:AdjustableTutorial") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters