Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve VoiceOver and Voice Control experienence #211

Merged
merged 8 commits into from
May 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add button accessibility trait to all movie cells
fbernutz committed May 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 22a5389c1ac96d93746510cbbfda1c5440d30895
1 change: 1 addition & 0 deletions Cineaste/ViewController/Movies/SeenMovieCell.swift
Original file line number Diff line number Diff line change
@@ -43,6 +43,7 @@ class SeenMovieCell: UITableViewCell {

private func applyAccessibility(for movie: Movie) {
isAccessibilityElement = true
accessibilityTraits.insert(.button)

accessibilityLabel = movie.title

1 change: 1 addition & 0 deletions Cineaste/ViewController/Movies/WatchlistMovieCell.swift
Original file line number Diff line number Diff line change
@@ -52,6 +52,7 @@ class WatchlistMovieCell: UITableViewCell {

private func applyAccessibility(for movie: Movie) {
isAccessibilityElement = true
accessibilityTraits.insert(.button)

accessibilityLabel = movie.title

Original file line number Diff line number Diff line change
@@ -68,6 +68,7 @@ class SearchMoviesCell: UITableViewCell {

private func applyAccessibility(for movie: Movie) {
isAccessibilityElement = true
accessibilityTraits.insert(.button)

accessibilityLabel = movie.title