Merge pull request #59 from grifas/add-accessibility-identifier

add accessibilityIdentifier on collection view to be accessible. By e…
This commit is contained in:
Roman Kyrylenko 2017-08-25 12:40:09 +03:00 committed by GitHub
commit 592929655c
1 changed files with 1 additions and 0 deletions

View File

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