From 77da46e1fd64e03658f0b4a8d6d884064ca0c3ed Mon Sep 17 00:00:00 2001 From: pera Date: Mon, 22 May 2017 14:57:33 -0300 Subject: [PATCH] Alternative to #378 --- Sources/IndicatorInfo.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/IndicatorInfo.swift b/Sources/IndicatorInfo.swift index 622fba1..84675fb 100644 --- a/Sources/IndicatorInfo.swift +++ b/Sources/IndicatorInfo.swift @@ -29,17 +29,18 @@ public struct IndicatorInfo { public var title: String? public var image: UIImage? public var highlightedImage: UIImage? + public var userInfo: Any? public init(title: String?) { self.title = title } - public init(image: UIImage?, highlightedImage: UIImage? = nil) { + public init(image: UIImage?, highlightedImage: UIImage? = nil, userInfo: Any? = nil) { self.image = image self.highlightedImage = highlightedImage } - public init(title: String?, image: UIImage?, highlightedImage: UIImage? = nil) { + public init(title: String?, image: UIImage?, highlightedImage: UIImage? = nil, userInfo: Any? = nil) { self.title = title self.image = image self.highlightedImage = highlightedImage