Skip to content

Commit 77da46e

Browse files
author
pera
committed
Alternative to xmartlabs#378
1 parent a0c75eb commit 77da46e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/IndicatorInfo.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,18 @@ public struct IndicatorInfo {
2929
public var title: String?
3030
public var image: UIImage?
3131
public var highlightedImage: UIImage?
32+
public var userInfo: Any?
3233

3334
public init(title: String?) {
3435
self.title = title
3536
}
3637

37-
public init(image: UIImage?, highlightedImage: UIImage? = nil) {
38+
public init(image: UIImage?, highlightedImage: UIImage? = nil, userInfo: Any? = nil) {
3839
self.image = image
3940
self.highlightedImage = highlightedImage
4041
}
4142

42-
public init(title: String?, image: UIImage?, highlightedImage: UIImage? = nil) {
43+
public init(title: String?, image: UIImage?, highlightedImage: UIImage? = nil, userInfo: Any? = nil) {
4344
self.title = title
4445
self.image = image
4546
self.highlightedImage = highlightedImage

0 commit comments

Comments
 (0)