Skip to content

Commit 86f009a

Browse files
authored
Merge pull request #3 from renderforest/hotfix/tooltipSlider-visibility
Tooltip slider visibility
2 parents 0a50254 + 2d2b092 commit 86f009a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Sources/SliderKit/TooltipSlider.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,21 @@ import UIKit
2828
public struct TooltipData {
2929
public var image: UIImage
3030
public var label: UILabel
31+
32+
public init(
33+
image: UIImage,
34+
label: UILabel
35+
) {
36+
self.image = image
37+
self.label = label
38+
}
3139
}
3240

3341
/// Custom subtype of slider with tooltip view
3442
open class TooltipSlider: UISlider {
3543

3644
var tooltipView: TooltipView?
37-
var onValueChanged: ((Double) -> Void)?
45+
open var onValueChanged: ((Double) -> Void)?
3846

3947
public init() {
4048

0 commit comments

Comments
 (0)