We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a50254 + 2d2b092 commit 86f009aCopy full SHA for 86f009a
Sources/SliderKit/TooltipSlider.swift
@@ -28,13 +28,21 @@ import UIKit
28
public struct TooltipData {
29
public var image: UIImage
30
public var label: UILabel
31
+
32
+ public init(
33
+ image: UIImage,
34
+ label: UILabel
35
+ ) {
36
+ self.image = image
37
+ self.label = label
38
+ }
39
}
40
41
/// Custom subtype of slider with tooltip view
42
open class TooltipSlider: UISlider {
43
44
var tooltipView: TooltipView?
- var onValueChanged: ((Double) -> Void)?
45
+ open var onValueChanged: ((Double) -> Void)?
46
47
public init() {
48
0 commit comments