add accessibilityIdentifier on collection view to be accessible. By example with the KIF interface testing library (https://github.com/kif-framework/KIF)

This commit is contained in:
Aurélien Grifasi 2017-08-17 16:04:10 +02:00
parent 8a21e29e89
commit 762b7b17cb
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ open class Segmentio: UIView {
collectionView.bounces = true
collectionView.isScrollEnabled = segmentioOptions.scrollEnabled
collectionView.backgroundColor = .clear
collectionView.accessibilityIdentifier = "segmentio_collection_view"
segmentioCollectionView = collectionView