Skip to content

Commit

Permalink
Merge pull request xmartlabs#391 from xmartlabs/feature/indicator-cus…
Browse files Browse the repository at this point in the history
…tom-info

Allow customization for indicators, xmartlabs#378
  • Loading branch information
pera authored Nov 16, 2017
2 parents 248b2cb + a98448b commit ce3a003
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Sources/IndicatorInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce3a003

Please sign in to comment.