TKUITripSegmentsView
public class TKUITripSegmentsView : UIView
Undocumented
-
Whether the trip should be shown as cancelled, i.e., with a line through it
- default:
false
Declaration
Swift
public var isCanceled: Bool
- default:
-
Whether to show wheelchair accessibility and inaccessibility icons
- default:
false
Declaration
Swift
public var allowWheelchairIcon: Bool
- default:
-
Whether to show bicycle accessibility icon
- default:
false
Declaration
Swift
public var allowBicycleAccessibilityIcon: Bool
- default:
-
This property determines if the transit icon in the view should be color coded.
Declaration
Swift
public var colorCodingTransitIcon: Bool
-
This color is used for darker texts. In addition, this is also the color which will be used to tint the transport mode icons if
colorCodingTransitIcon
is set tofalse
.- default:
UIColor.tkLabelPrimary
Declaration
Swift
public var darkTextColor: UIColor
- default:
-
This color is used on lighter texts. In addition, this is also the color which will be used to tint non-PT modes if
colorCodingTransitIcon
is set toYES
.- default:
UIColor.tkLabelSecondary
Declaration
Swift
public var lightTextColor: UIColor
- default:
-
Undocumented
Declaration
Swift
public override init(frame: CGRect)
-
Undocumented
Declaration
Swift
public required init?(coder: NSCoder)
-
Undocumented
Declaration
Swift
public func configure(_ segments: [TKUITripSegmentDisplayable], allowSubtitles: Bool = true, allowInfoIcons: Bool = true)
-
Undocumented
Declaration
Swift
public func selectSegment(atIndex index: Int)
-
Undocumented
Declaration
Swift
public func segmentIndex(atX x: CGFloat) -> Int
-
Undocumented
Declaration
Swift
public override var intrinsicContentSize: CGSize { get }
-
Undocumented
Declaration
Swift
public override func layoutSubviews()