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
titleSegment item title
-
Initializes with title and image
Declaration
Swift
public init(title: String? = nil, imageName: String?, bundle: Bundle? = nil)Parameters
titleSegment item title
imageNameImage name located in asset catalog
bundleBundle that will be used to get image by name
-
Initializes with title and image
Declaration
Swift
public init(title: String? = nil, imageUrl: String?)Parameters
titleSegment item title
imageUrlImage remote location
-
Whether or not image is set
Declaration
Swift
public var isImageAvailable: Bool { get }
SegmentModel Structure Reference