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
maxSpeed
Specifies the max speed fot the bicycle.
-
Copies the current Bicycle with changes specified in build closure
Declaration
Swift
public func copy(build: (inout Builder) -> ()) -> Bicycle
Parameters
build
This closure allows for change of Bicycle values
Return Value
Bicycle with the changes set on the closure
-
The
Builder
creates a new instance ofBicycle
with modified fields.Declaration
Swift
public struct Builder