From 28967aabccf1d01168c331eaf1912db9eb2df62a Mon Sep 17 00:00:00 2001 From: Alex Anegon Date: Tue, 30 Jan 2024 08:30:04 +0100 Subject: [PATCH] fix(List): Make list chevron accesibility identifier visible and configurable (#333) --- .../Lists/ControlPresets/NavigationPresetView.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/Mistica/Components/Lists/ControlPresets/NavigationPresetView.swift b/Sources/Mistica/Components/Lists/ControlPresets/NavigationPresetView.swift index ff8446c14..941c6df88 100644 --- a/Sources/Mistica/Components/Lists/ControlPresets/NavigationPresetView.swift +++ b/Sources/Mistica/Components/Lists/ControlPresets/NavigationPresetView.swift @@ -33,6 +33,15 @@ public class NavigationPresetView: UIStackView { } } + public var setAccessibilityIdentifier: String? { + get { + accessibilityIdentifier + } + set { + accessibilityIdentifier = newValue + } + } + override public var tintColor: UIColor! { get { super.tintColor @@ -67,6 +76,7 @@ private extension NavigationPresetView { spacing = 16 imageView.tintColor = .textSecondary + isAccessibilityElement = true addArrangedSubview(imageView) }