Bicycle
public class Bicycle : Vehicle
A vehicle of type bicycle.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init( maxSpeed: Measurement<UnitSpeed>? = BICYCLE_SPEED )Parameters
maxSpeedSpecifies the max speed fot the bicycle.
-
Copies the current Bicycle with changes specified in build closure
Declaration
Swift
public func copy(build: (inout Builder) -> ()) -> BicycleParameters
buildThis closure allows for change of Bicycle values
Return Value
Bicycle with the changes set on the closure
-
The
Buildercreates a new instance ofBicyclewith modified fields.Declaration
Swift
public struct Builder
Bicycle Class Reference