GradientPolylineOptions | iOS SDK | 2GIS Documentation

GradientPolylineOptions

Parameters of the gradient polyline.

public init(
    borderWidth: LogicalPixel = LogicalPixel(value: 0),
    secondBorderWidth: LogicalPixel = LogicalPixel(value: 0),
    gradientLength: LogicalPixel = LogicalPixel(value: 1),
    borderColor: Color = Color(),
    secondBorderColor: Color = Color(),
    colors: [Color],
    colorIndices: Data
)
Parameters
borderWidth
secondBorderWidth
gradientLength
borderColor
secondBorderColor
colors
colorIndices
Properties

Line border width.

Width of the second line border.

Gradient line length

Outline color.

Color of the second outline.

Gradient polyline color palette

Gradient polyline color indexes. The number of indexes must be 1 less than the number of polyline points.