From bd089393c4c057f5b8437dd17275fc10358291dd Mon Sep 17 00:00:00 2001 From: "C." Date: Fri, 26 Jan 2024 13:56:45 +0300 Subject: [PATCH] remove whitespaces... --- Sources/AccessibilityDocumentation/Constants.swift | 2 +- .../{SwitchControl.md => Switch Control.md} | 2 +- .../{VoiceControl.md => Voice Control.md} | 2 +- .../Documentation.docc/Articles/1. Basic/Navigation.md | 2 +- .../Documentation.docc/Getting Started.md | 8 ++++---- .../AccessibilityDocumentation/UIAccessibility_.swift | 10 +++++----- 6 files changed, 13 insertions(+), 13 deletions(-) rename Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/{SwitchControl.md => Switch Control.md} (87%) rename Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/{VoiceControl.md => Voice Control.md} (96%) diff --git a/Sources/AccessibilityDocumentation/Constants.swift b/Sources/AccessibilityDocumentation/Constants.swift index 2a5dbd1..37f509d 100644 --- a/Sources/AccessibilityDocumentation/Constants.swift +++ b/Sources/AccessibilityDocumentation/Constants.swift @@ -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 diff --git a/Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/SwitchControl.md b/Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/Switch Control.md similarity index 87% rename from Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/SwitchControl.md rename to Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/Switch Control.md index 120a47b..f965be1 100644 --- a/Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/SwitchControl.md +++ b/Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/Switch Control.md @@ -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 diff --git a/Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/VoiceControl.md b/Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/Voice Control.md similarity index 96% rename from Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/VoiceControl.md rename to Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/Voice Control.md index 5036d72..91099a1 100644 --- a/Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/VoiceControl.md +++ b/Sources/AccessibilityDocumentation/Documentation.docc/Articles/0. AssistiveTechnologies/Voice Control.md @@ -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) diff --git a/Sources/AccessibilityDocumentation/Documentation.docc/Articles/1. Basic/Navigation.md b/Sources/AccessibilityDocumentation/Documentation.docc/Articles/1. Basic/Navigation.md index f95553c..cadeee9 100644 --- a/Sources/AccessibilityDocumentation/Documentation.docc/Articles/1. Basic/Navigation.md +++ b/Sources/AccessibilityDocumentation/Documentation.docc/Articles/1. Basic/Navigation.md @@ -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 } diff --git a/Sources/AccessibilityDocumentation/Documentation.docc/Getting Started.md b/Sources/AccessibilityDocumentation/Documentation.docc/Getting Started.md index 1fc9fba..6a8b47d 100644 --- a/Sources/AccessibilityDocumentation/Documentation.docc/Getting Started.md +++ b/Sources/AccessibilityDocumentation/Documentation.docc/Getting Started.md @@ -19,11 +19,11 @@ There are three main assistance for blind or motion limited users: - **** 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) - **** 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 @@ -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") { diff --git a/Sources/AccessibilityDocumentation/UIAccessibility_.swift b/Sources/AccessibilityDocumentation/UIAccessibility_.swift index c54cfa8..d41f380 100644 --- a/Sources/AccessibilityDocumentation/UIAccessibility_.swift +++ b/Sources/AccessibilityDocumentation/UIAccessibility_.swift @@ -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 @@ -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