SegmentModel
public struct SegmentModel
Segment item model
-
Segmente item title
Declaration
Swift
var title: String?
-
Image name located in asset catalog
Declaration
Swift
var imageName: String?
-
Bundle that will be used to get image by name
Declaration
Swift
var bundle: Bundle?
-
Image remote location
Declaration
Swift
var imageUrl: URL?
-
Initializes with title only
Declaration
Swift
public init(title: String?)
Parameters
title
Segment item title
-
Initializes with title and image
Declaration
Swift
public init(title: String? = nil, imageName: String?, bundle: Bundle? = nil)
Parameters
title
Segment item title
imageName
Image name located in asset catalog
bundle
Bundle that will be used to get image by name
-
Initializes with title and image
Declaration
Swift
public init(title: String? = nil, imageUrl: String?)
Parameters
title
Segment item title
imageUrl
Image remote location
-
Whether or not image is set
Declaration
Swift
public var isImageAvailable: Bool { get }