Merge pull request #391 from xmartlabs/feature/indicator-custom-info
Allow customization for indicators, #378
This commit is contained in:
commit
ce3a0034d3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue