Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

class DynamicHeightCollectionView: AccessibleCollectionView {
class DynamicHeightCollectionView: UICollectionView {
override func layoutSubviews() {
super.layoutSubviews()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ class TopicsCollectionView: DynamicHeightCollectionView {
func collapse() {
coordinator?.changeState(.collapsed)
}

override func accessibilityElementCount() -> Int {
guard let dataSource else {
return 0
}

return dataSource.collectionView(self, numberOfItemsInSection: 0)
}
}

extension TopicsCollectionView: ReaderTopicCollectionViewCoordinatorDelegate {
Expand Down