# TransportModePanel

    @IBDesignable
    open class TransportModePanel : UIView

A panel displaying all the possible transport modes.

### Properties

- `transportModes`

  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 }

- `transportMode`

  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 }

- `selectorColor`

  Selector color.

  #### Declaration

  Swift

      public var selectorColor: UIColor { get set }

- `panelBackgroundColor`

  Panel background color.

  #### Declaration

  Swift

      public var panelBackgroundColor: UIColor { get set }

- `iconColor`

  Icon color.

  #### Declaration

  Swift

      public var iconColor: UIColor { get set }

- `delegate`

  The object which acts as the delegate of the transport mode panel.

  #### Declaration

  Swift

      public weak var delegate: TransportModePanelDelegate?