StyleConfiguration
public struct StyleConfiguration
Represents a style configuration for the elements of the NavigationVisualization
.
When no arguments are provided to the constructor, it constructs the default style configuration.
-
Designated initializer.
Important
This is a Public Preview API. It may be changed or removed at any time.
Declaration
Swift
public init( route: RouteStyle = RouteStyle(), routeTrafficIncident: RouteTrafficIncidentStyle = RouteTrafficIncidentStyle(), safetyLocationStyle: SafetyLocationStyle = SafetyLocationStyle(), betterRouteStyle: BetterRouteStyle = BetterRouteStyle() )
Parameters
route
The style configuration for the routes. By default,
TomTomSDKRoutingVisualization/RouteStyle/init()
is used.routeTrafficIncident
The style configuration for the on-route traffic incidents. By default,
TomTomSDKRoutingVisualization/RouteTrafficIncindentStyle/init()
is used.safetyLocationStyle
The style configuration for safety location elements. By default,
init()
is used.betterRouteStyle
The style configuration for better route proposals visualization. By default,
init()
is used.
-
The style configuration for the routes.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let route: RouteStyle
-
The style configuration for on-route.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let routeTrafficIncident: RouteTrafficIncidentStyle
-
The style configuration for safety location elements.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let safetyLocationStyle: SafetyLocationStyle
-
The style configuration for better route proposals visualization.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let betterRouteStyle: BetterRouteStyle