Showing
1 changed file
with
13 additions
and
0 deletions
| ... | @@ -84,6 +84,19 @@ import UIKit | ... | @@ -84,6 +84,19 @@ import UIKit |
| 84 | okButton.setTitleColor(.white, for: .normal) | 84 | okButton.setTitleColor(.white, for: .normal) |
| 85 | okButton.backgroundColor = UIColor(rgb: 0x0EA600) | 85 | okButton.backgroundColor = UIColor(rgb: 0x0EA600) |
| 86 | okButton.layer.cornerRadius = 10.0 | 86 | okButton.layer.cornerRadius = 10.0 |
| 87 | + | ||
| 88 | + setupAccessibilty() | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + func setupAccessibilty () { | ||
| 92 | + heroImage.isAccessibilityElement = true | ||
| 93 | + heroImage.accessibilityLabel = "Οδηγίες χρήσης" | ||
| 94 | + heroImage.accessibilityTraits = .image | ||
| 95 | + | ||
| 96 | + okButton.isAccessibilityElement = true | ||
| 97 | + okButton.accessibilityLabel = okButton.title(for: .normal) | ||
| 98 | + okButton.accessibilityHint = "Διπλό πάτημα για άνοιγμα" | ||
| 99 | + okButton.accessibilityTraits = .button | ||
| 87 | } | 100 | } |
| 88 | 101 | ||
| 89 | // MARK: - Actions | 102 | // MARK: - Actions | ... | ... |
-
Please register or login to post a comment