TransportModePanel

@IBDesignable
open class TransportModePanel : UIView

A panel displaying all the possible transport modes.

  • The visible transport modes.

    Note

    NMATransportMode.urbanMobility and NMATransportMode.publicTransport are not supported.

    Note

    The buttons are listed in the order of this array.

    Declaration

    Swift

    public var transportModes: [NMATransportMode] { get set }
  • The selected transport mode. It sets the initially selected transport mode, too.

    Note

    It should be within the transportModes array. Otherwise, no transport mode is selected.

    Declaration

    Swift

    public var transportMode: NMATransportMode { get set }
  • Selector color.

    Declaration

    Swift

    public var selectorColor: UIColor { get set }
  • Panel background color.

    Declaration

    Swift

    public var panelBackgroundColor: UIColor { get set }
  • Icon color.

    Declaration

    Swift

    public var iconColor: UIColor { get set }
  • The object which acts as the delegate of the transport mode panel.

    Declaration

    Swift

    public weak var delegate: TransportModePanelDelegate?