Fix IndicatorInfo's initializers.

This commit is contained in:
Ryoga Kitagawa 2018-03-26 20:09:42 +09:00 committed by Martin Barreto
parent ce3a0034d3
commit 1896e6873d
1 changed files with 2 additions and 0 deletions

View File

@ -38,12 +38,14 @@ public struct IndicatorInfo {
public init(image: UIImage?, highlightedImage: UIImage? = nil, userInfo: Any? = nil) {
self.image = image
self.highlightedImage = highlightedImage
self.userInfo = userInfo
}
public init(title: String?, image: UIImage?, highlightedImage: UIImage? = nil, userInfo: Any? = nil) {
self.title = title
self.image = image
self.highlightedImage = highlightedImage
self.userInfo = userInfo
}
}