Skip to content

Commit cf6842a

Browse files
committed
Update readme and code documentation regarding colors
1 parent 6216e52 commit cf6842a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ A slider control designed to be easy to grab and use because it can be dragged o
1414
- Can be dragged or (optionally) tapped to set a value
1515
- Supports horizontal and vertical orientation in either direction
1616
- IBDesignable – colors, values, rounded corners, and behavior can be customized in Interface Builder or programatically
17+
- Supports light & dark appearance using semantic system colors by default (iOS 13+)
1718
- Adjustable haptic feedback (iOS 10+)
1819
- VoiceOver support
1920

TactileSlider/Classes/TactileSlider.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ import UIKit
7878

7979
/// If true, a single tap anywhere in the slider will set it to that value
8080
///
81-
/// - Remark: Users may accidentally activate this feature while trying to make very small adjustments. If the context lends to making very small adjustments with the slider, consider disabling this feature.
81+
/// - Remark: Users may accidentally activate this feature while trying to make very small adjustments. If the intended use case involves making very small adjustments with the slider, consider disabling this feature.
8282
@IBInspectable open var enableTapping: Bool = true
8383

8484
/// If true, the slider will animate its scale when it is being dragged
8585
@IBInspectable open var scaleUpWhenInUse: Bool = false
8686

8787
/// The color of the track the slider slides along
88+
///
89+
/// - Important: This defaults to the dynamic system fill color on iOS 13 or greater, but to darkGray on older versions
8890
@IBInspectable open var trackBackground: UIColor = {
8991
if #available(iOS 13, *) {
9092
return .systemFill
@@ -98,6 +100,8 @@ import UIKit
98100
}
99101

100102
/// The color of the value indicator part of the slider
103+
///
104+
/// - Important: This defaults to a dynamic system color on iOS 13 or greater, but to white on older versions
101105
@IBInspectable open var thumbTint: UIColor = {
102106
if #available(iOS 13, *) {
103107
return .label

0 commit comments

Comments
 (0)