Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
simple overloading functions
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
You can’t perform that action at this time.