diff --git a/core/Sources/Components/Slider/AccessibilityIdentifiier/SliderAccessibilityIdentifier.swift b/core/Sources/Components/Slider/AccessibilityIdentifiier/SliderAccessibilityIdentifier.swift new file mode 100644 index 000000000..15671d89d --- /dev/null +++ b/core/Sources/Components/Slider/AccessibilityIdentifiier/SliderAccessibilityIdentifier.swift @@ -0,0 +1,18 @@ +// +// SliderAccessibilityIdentifier.swift +// SparkCore +// +// Created by louis.borlee on 12.12.23. +// Copyright © 2023 Adevinta. All rights reserved. +// + +import Foundation + +/// The accessibility identifiers for the slider. +public enum SliderAccessibilityIdentifier { + + // MARK: - Properties + + /// The text label accessibility identifier. + public static let slider = "spark-slider" +} diff --git a/core/Sources/Components/Slider/View/SliderUIControl.swift b/core/Sources/Components/Slider/View/SliderUIControl.swift index f214bfccd..780a22802 100644 --- a/core/Sources/Components/Slider/View/SliderUIControl.swift +++ b/core/Sources/Components/Slider/View/SliderUIControl.swift @@ -126,6 +126,7 @@ public final class SliderUIControl: UIControl { guard let self else { return } self.valueSubject.send(self.value) }), for: .valueChanged) + self.accessibilityIdentifier = SliderAccessibilityIdentifier.slider } required init?(coder: NSCoder) {