Merge pull request #391 from xmartlabs/feature/indicator-custom-info

Allow customization for indicators, #378
This commit is contained in:
pera 2017-11-16 12:00:09 -03:00 committed by GitHub
commit ce3a0034d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -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