TKUITripSegmentsView

@MainActor
public class TKUITripSegmentsView : UIView

Undocumented

  • Whether the trip should be shown as cancelled, i.e., with a line through it

    • default: false

    Declaration

    Swift

    @MainActor
    public var isCanceled: Bool
  • Whether to show wheelchair accessibility and inaccessibility icons

    • default: false

    Declaration

    Swift

    @MainActor
    public var allowWheelchairIcon: Bool
  • Whether to show bicycle accessibility icon

    • default: false

    Declaration

    Swift

    @MainActor
    public var allowBicycleAccessibilityIcon: Bool
  • This property determines if the transit icon in the view should be color coded.

    Declaration

    Swift

    @MainActor
    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 to false.

    Declaration

    Swift

    @MainActor
    public var darkTextColor: UIColor
  • 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 to YES.

    Declaration

    Swift

    @MainActor
    public var lightTextColor: UIColor
  • Undocumented

    Declaration

    Swift

    @MainActor
    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init?(coder: NSCoder)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public func configure(_ segments: [TKUITripSegmentDisplayable], allowSubtitles: Bool = true, allowInfoIcons: Bool = true)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public func selectSegment(atIndex index: Int)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public func segmentIndex(atX x: CGFloat) -> Int
  • Undocumented

    Declaration

    Swift

    @MainActor
    public override var intrinsicContentSize: CGSize { get }
  • Undocumented

    Declaration

    Swift

    @MainActor
    public override func layoutSubviews()