Skip to content

Commit

Permalink
Merge pull request #10 from VODGroup/eng
Browse files Browse the repository at this point in the history
remove whitespaces...
  • Loading branch information
crescentheaded authored Jan 26, 2024
2 parents 9d314ab + bd08939 commit 6f142dc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Sources/AccessibilityDocumentation/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ extension Book {
//extension UIAccessibility.AssistiveTechnologyIdentifier {
//
// @available(iOS 8.0, *)
// public static let notificationSwitch Control: UIAccessibility.AssistiveTechnologyIdentifier
// public static let notificationSwitchControl: UIAccessibility.AssistiveTechnologyIdentifier
//
// @available(iOS 9.0, *)
// public static let notificationVoiceOver: UIAccessibility.AssistiveTechnologyIdentifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Allows to connect external devices and link them to any command. As a result paralyzed people can control a phone by simple signals: finger movement, muscle stretches, etc. Also, a iPhone's camera can recognize facial expression or any sound like a command. In the end user moves focus on screen and pass command to focused element by submenu that is presented after selection.

![Switch control modes: focus groups on elements, cross selection and submenu](Switch ControlOverview)
![Switch Control modes: focus groups on elements, cross selection and submenu](SwitchControlOverview)

## How to setup

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Adds additional commands over graphical UI to control a phone by voice commands.

## Overview

![Voice Control modes: with labels, enumerated elements or grid](Voice ControlOverview)
![Voice Control modes: with labels, enumerated elements or grid](VoiceControlOverview)

[Video how to use Voice Control](https://www.youtube.com/watch?v=eg22JaZWAgs)

Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Escape gesture allows to close current screen by special gesture without focusin

@Comment {
// TODO: Add escape gesture video
// Do Switch control and voice control have support for this gesture? Can't find it for Switch Control
// Do Switch Control and Voice Control have support for this gesture? Can't find it for Switch Control
// TODO: Check https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/SupportingAccessibility.html
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ There are three main assistance for blind or motion limited users:

- **<doc:Voice Control>** adds additional commands over graphical UI to control a phone by voice commands. A user of Voice Control can see, but can't touch their phone, as a result he can pronounce commands lite "select Pepperoni", "tap purchase" or "close screen". iPhone recognizes speach, convert it to text and links command to elements' description.

![Voice Control modes: with labels, enumerated elements or grid](Voice ControlOverview)
![Voice Control modes: with labels, enumerated elements or grid](VoiceControlOverview)

- **<doc:Switch Control>** allows to connect external devices and link them to any command. As a result paralyzed people can control a phone by simple signals: finger movement, muscle stretches, etc. Also, a iPhone's camera can recognize facial expression or any sound like a command. In the end user moves focus on screen and pass command to focused element by submenu that is presented after selection.

![Switch control modes: focus groups on elements, cross selection and submenu](Switch ControlOverview)
![Switch Control modes: focus groups on elements, cross selection and submenu](SwitchControlOverview)

> Note: Watch [Apple's playlist about Accessibility ](https://www.youtube.com/playlist?list=PLIl2EzNYri0cLtSlZowttih25VnSvWITu) for inspiration
Expand All @@ -47,14 +47,14 @@ Step by step practice course.
@TabNavigator {
@Tab("Switch Control") {
Allows to connect external devices and link them to any command. As a result paralyzed people can control a phone by simple signals: finger movement, muscle stretches, etc. Also, a iPhone's camera can recognize facial expression or any sound like a command. In the end user moves focus on screen and pass command to focused element by submenu that is presented after selection.
![Switch control modes: focus groups on elements, cross selection and submenu](Switch ControlOverview)
![Switch Control modes: focus groups on elements, cross selection and submenu](Switch ControlOverview)
}


@Tab("Voice Control") {
Adds additional commands over graphical UI to control a phone by voice commands. A user of Voice Control can see, but can't touch their phone, as a result he can pronounce commands lite "select Pepperoni", "tap purchase" or "close screen". iPhone recognizes speach, convert it to text and links command to elements' description.

![Voice Control modes: with labels, enumerated elements or grid](Voice ControlOverview)
![Voice Control modes: with labels, enumerated elements or grid](VoiceControlOverview)
}

@Tab("Voice Over") {
Expand Down
10 changes: 5 additions & 5 deletions Sources/AccessibilityDocumentation/UIAccessibility_.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Book {
/**
Return YES if the receiver should be exposed as an accessibility element.

Setting the property to YES will cause the receiver to be visible to assistive applications: VoiceOver will focus on this element to speak aloud it, Voice control and Switch Control will focus is elements it intrectitve
Setting the property to YES will cause the receiver to be visible to assistive applications: VoiceOver will focus on this element to speak aloud it, Voice Control and Switch Control will focus is elements it intrectitve

default == NO
default on UIKit controls == YES
Expand Down Expand Up @@ -636,15 +636,15 @@ public class Book {


/**
Use UIAccessibilityIsSwitch ControlRunning() to determine if Switch Control is running.
Listen for UIAccessibilitySwitch ControlStatusDidChangeNotification to know when Switch Control starts or stops.
Use UIAccessibilityIsSwitchControlRunning() to determine if Switch Control is running.
Listen for UIAccessibilitySwitchControlStatusDidChangeNotification to know when Switch Control starts or stops.
*/
@available(iOS 8.0, *)
public static var isSwitch ControlRunning: Bool { false }
public static var isSwitchControlRunning: Bool { false }


@available(iOS 8.0, *)
public static let Switch ControlStatusDidChangeNotification: NSNotification.Name = .init("")
public static let SwitchControlStatusDidChangeNotification: NSNotification.Name = .init("")


/// Returns whether the system preference for Speak Selection is enabled
Expand Down

0 comments on commit 6f142dc

Please sign in to comment.