DestinationConnectionLineStyle
public struct DestinationConnectionLineStyle
The DestinationConnectionLineStyle
struct represents the style of a dotted line connecting the drivable destination with the final destination.
It allows the user to customize the dotted line by specifying various parameters such as line pattern, dash length,
gap color, pattern length, pattern color, and pattern width.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes
DestinationConnectionLineStyle
with the given values.Throws
StyleConfigurationError/invalidArgument
ifwidth
is not greater than 0.Declaration
Swift
public init( patternTexture: UIImage? = DestinationConnectionLineStyle.Defaults.patternTexture, width: Double = DestinationConnectionLineStyle.Defaults.width, outlineColor: UIColor = DestinationConnectionLineStyle.Defaults.outlineColor ) throws
Parameters
patternTexture
The pattern image for the connection line. By default,
patternTexture
is used.width
The pattern width of the connection line. This parameter must be greater than 0. By default,
width
is used.outlineColor
The outline color of the connection line. By default,
outlineColor
is used. -
Initializes
DestinationConnectionLineStyle
with values fromDefaults
.Declaration
Swift
public init()
-
A pattern texture image that determines the pattern of the line.
Declaration
Swift
public let patternTexture: UIImage?
-
The pattern width of the connection line, measured in density-independent pixels.
Declaration
Swift
public let width: Double
-
The outline color of the connection line.
Declaration
Swift
public let outlineColor: UIColor
-
Contains default values for
RouteStyle.DestinationConnectionLineStyle
.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Defaults