You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TactileSlider/Classes/TactileSlider.swift
+8-20Lines changed: 8 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -86,34 +86,19 @@ import UIKit
86
86
87
87
/// The color of the track the slider slides along
88
88
///
89
-
/// - Important: This defaults to the dynamic system fill color on iOS 13 or greater, but to darkGray on older versions
89
+
/// - Important: This defaults to the dynamic system fill color on iOS 13 or greater, but to lightGray on older versions
90
90
@IBInspectableopenvartrackBackground:UIColor={
91
91
if #available(iOS 13,*){
92
92
return.systemFill
93
93
}else{
94
-
return.darkGray
94
+
return.lightGray
95
95
}
96
96
}(){
97
97
didSet {
98
98
renderer.trackBackground = trackBackground
99
99
}
100
100
}
101
101
102
-
/// 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
105
-
@IBInspectableopenvarthumbTint:UIColor={
106
-
if #available(iOS 13,*){
107
-
return.label
108
-
}else{
109
-
return.white
110
-
}
111
-
}(){
112
-
didSet {
113
-
renderer.thumbTint = thumbTint
114
-
}
115
-
}
116
-
117
102
/// The radius of the rounded corners of the slider
118
103
///
119
104
/// Note: If this is set to a negative value (or left as default in interface builder), the corner radius will be automatically determined from the size of the bounds
0 commit comments