From 762b7b17cb5d404ba331037f77a35166eddb98f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aure=CC=81lien=20Grifasi?= Date: Thu, 17 Aug 2017 16:04:10 +0200 Subject: [PATCH] add accessibilityIdentifier on collection view to be accessible. By example with the KIF interface testing library (https://github.com/kif-framework/KIF) --- Segmentio/Source/Segmentio.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Segmentio/Source/Segmentio.swift b/Segmentio/Source/Segmentio.swift index b4797b9..578442e 100644 --- a/Segmentio/Source/Segmentio.swift +++ b/Segmentio/Source/Segmentio.swift @@ -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