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
DestinationConnectionLineStylewith the given values.Throws
StyleConfigurationError/invalidArgumentifwidthis not greater than 0.Declaration
Swift
public init( patternTexture: UIImage? = DestinationConnectionLineStyle.Defaults.patternTexture, width: Double = DestinationConnectionLineStyle.Defaults.width, outlineColor: UIColor = DestinationConnectionLineStyle.Defaults.outlineColor ) throwsParameters
patternTextureThe pattern image for the connection line. By default,
patternTextureis used.widthThe pattern width of the connection line. This parameter must be greater than 0. By default,
widthis used.outlineColorThe outline color of the connection line. By default,
outlineColoris used. -
Initializes
DestinationConnectionLineStylewith 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.See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Defaults
TomTom SDK for iOS (0.53.1)
DestinationConnectionLineStyle