-
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
6eba90f
commit 7dda699
Showing
17 changed files
with
186 additions
and
72 deletions.
There are no files selected for viewing
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
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
6 changes: 6 additions & 0 deletions
6
...andbook/iOSAccessibilityHandbook.docc/Resources/Adjustable/AdjustableTutorialStep_1.swift
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,6 @@ | ||
import UIKit | ||
|
||
class AccessibleStepper: UIStepper { | ||
|
||
private func counterValue = 0 | ||
} |
18 changes: 18 additions & 0 deletions
18
...andbook/iOSAccessibilityHandbook.docc/Resources/Adjustable/AdjustableTutorialStep_2.swift
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 @@ | ||
import UIKit | ||
|
||
class AccessibleStepper: UIStepper { | ||
|
||
private func counterValue = 0 | ||
|
||
var isAccessibilityElement: Bool { | ||
true | ||
} | ||
|
||
var accessibilityLabel: String { | ||
"Number of products" | ||
} | ||
|
||
var accessibilityValue: String { | ||
"\(counterValue)" | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...andbook/iOSAccessibilityHandbook.docc/Resources/Adjustable/AdjustableTutorialStep_3.swift
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,30 @@ | ||
import UIKit | ||
|
||
class AccessibleStepper: UIStepper { | ||
|
||
private func counterValue = 0 | ||
|
||
var isAccessibilityElement: Bool { | ||
true | ||
} | ||
|
||
var accessibilityLabel: String { | ||
"Number of products" | ||
} | ||
|
||
var accessibilityValue: String { | ||
"\(counterValue)" | ||
} | ||
|
||
var accessibilityTraits: [UIAccessibilityTraits] { | ||
.adjustable | ||
} | ||
|
||
func accessibilityIncrement() { | ||
counterValue += 1 | ||
} | ||
|
||
func accessibilityDecrement() { | ||
counterValue -= 1 | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...andbook/iOSAccessibilityHandbook.docc/Resources/Adjustable/AdjustableTutorialStep_4.swift
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,30 @@ | ||
import UIKit | ||
|
||
class AccessibleStepper: UIStepper { | ||
|
||
private func counterValue = 0 | ||
|
||
var isAccessibilityElement: Bool { | ||
UIAccessibility.isVoiceOverRunning | ||
} | ||
|
||
var accessibilityLabel: String { | ||
"Number of products" | ||
} | ||
|
||
var accessibilityValue: String { | ||
"\(counterValue)" | ||
} | ||
|
||
var accessibilityTraits: [UIAccessibilityTraits] { | ||
UIAccessibility.isVoiceOverRunning ? .adjustable : .none | ||
} | ||
|
||
func accessibilityIncrement() { | ||
counterValue += 1 | ||
} | ||
|
||
func accessibilityDecrement() { | ||
counterValue -= 1 | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...andbook/iOSAccessibilityHandbook.docc/Resources/Adjustable/AdjustableTutorialStep_5.swift
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,32 @@ | ||
import UIKit | ||
|
||
class AccessibleStepper: UIStepper { | ||
|
||
private func counterValue = 0 | ||
|
||
var isAccessibilityElement: Bool { | ||
UIAccessibility.isVoiceOverRunning | ||
} | ||
|
||
var accessibilityLabel: String { | ||
"Number of products" | ||
} | ||
|
||
var accessibilityValue: String { | ||
"\(counterValue)" | ||
} | ||
|
||
var accessibilityTraits: [UIAccessibilityTraits] { | ||
UIAccessibility.isVoiceOverRunning ? .adjustable : .none | ||
} | ||
|
||
func accessibilityIncrement() { | ||
counterValue += 1 | ||
} | ||
|
||
func accessibilityDecrement() { | ||
counterValue -= 1 | ||
} | ||
|
||
var accessibilityNavigationStyle = .combined | ||
} |
Binary file added
BIN
+1.6 MB
...dbook/iOSAccessibilityHandbook.docc/Resources/Covers/Different technologies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.45 KB
...dbook/iOSAccessibilityHandbook.docc/Resources/Covers/Switch Control Preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.56 MB
...ndbook/iOSAccessibilityHandbook.docc/Resources/Covers/SwitchControlOverview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.83 KB
...ndbook/iOSAccessibilityHandbook.docc/Resources/Covers/Voice Control Preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.02 MB
...andbook/iOSAccessibilityHandbook.docc/Resources/Covers/VoiceControlOverview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.2 KB
...tyHandbook/iOSAccessibilityHandbook.docc/Resources/Covers/VoiceOver Preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.92 MB
...tyHandbook/iOSAccessibilityHandbook.docc/Resources/Covers/VoiceOverDesigner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+407 KB
...dbook/iOSAccessibilityHandbook.docc/Resources/Covers/VoiceOverDesigner~dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+380 KB
...Handbook/iOSAccessibilityHandbook.docc/Resources/VoiceOver/ScreenAsTrackPad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+151 KB
...andbook/iOSAccessibilityHandbook.docc/Resources/VoiceOver/VoiceOverGestures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.