Created
May 8, 2017 15:10
-
-
Save wwe-johndpope/a3ae24ac1b619104c7d21c449f07ba80 to your computer and use it in GitHub Desktop.
simple overloading functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct IndicatorInfo { | |
public var title: String | |
public var image: UIImage? | |
public var highlightedImage: UIImage? | |
public init(title: String) { | |
self.title = title | |
} | |
public init(title: String, image: UIImage?) { | |
self.init(title: title) | |
self.image = image | |
} | |
public init(title: String, image: UIImage?, highlightedImage: UIImage?) { | |
self.init(title: title, image: image) | |
self.highlightedImage = highlightedImage | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment