Skip to content

Commit

Permalink
Merge pull request #102 from Shopify/accessibility-scroll-hooks-2
Browse files Browse the repository at this point in the history
Make FTD and FCD conform to UIScrollViewAccessibilityDelegate
  • Loading branch information
alinebee authored Jun 20, 2018
2 parents 9a33039 + 41aae2a commit d0f1136
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,11 @@ extension FunctionalCollectionData: UICollectionViewDelegate {
public func scrollViewDidScrollToTop(_ scrollView: UIScrollView) {
scrollViewDidScrollToTop?(scrollView)
}

// MARK: - UIScrollViewAccessibilityDelegate

}

// MARK: - UIScrollViewAccessibilityDelegate

extension FunctionalCollectionData: UIScrollViewAccessibilityDelegate {
public func accessibilityScrollStatus(for scrollView: UIScrollView) -> String? {
return scrollViewAccessibilityScrollStatus?(scrollView)
}
Expand Down
8 changes: 5 additions & 3 deletions FunctionalTableData/TableView/FunctionalTableData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -784,9 +784,11 @@ extension FunctionalTableData: UITableViewDelegate {
public func scrollViewDidScrollToTop(_ scrollView: UIScrollView) {
scrollViewDidScrollToTop?(scrollView)
}

// MARK: - UIScrollViewAccessibilityDelegate

}

// MARK: - UIScrollViewAccessibilityDelegate

extension FunctionalTableData: UIScrollViewAccessibilityDelegate {
public func accessibilityScrollStatus(for scrollView: UIScrollView) -> String? {
return scrollViewAccessibilityScrollStatus?(scrollView)
}
Expand Down

0 comments on commit d0f1136

Please sign in to comment.