Vehicle

public protocol Vehicle : ConformanceLocked

Specifies the vehicle (or lack of one).

Important

You cannot declare new conformances. Only Pedestrian, Bicycle, Car, Motorcycle, Van, Taxi, Bus and Truck are valid conforming types.
  • Specifies the max speed of the vehicle.

    Declaration

    Swift

    var maxSpeed: Measurement<UnitSpeed>? { get }
  • Specifies the vehicle type.

    Declaration

    Swift

    var type: VehicleType { get }