-
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
640402b
commit b27803a
Showing
2 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...ccessibilityDocumentation/Documentation.docc/Resources/AdoptingCell/DescribeCell_16.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,15 @@ | ||
extension MenuViewController: UIScrollViewAccessibilityDelegate { | ||
public func accessibilityScrollStatus(for scrollView: UIScrollView) -> String? { | ||
guard let visiblePaths = self.tableView.indexPathsForVisibleRows else { | ||
return nil | ||
} | ||
|
||
let visibleProducts = visiblePaths.map { path in | ||
menuModel.products[path.row] | ||
} | ||
|
||
let titles = visibleProducts.map(\.title) | ||
|
||
return titles.joined(separator: ", ") // TODO: Add current type of products and "out of 24" | ||
} | ||
} |
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