RouteEditor | iOS SDK | 2GIS Documentation

RouteEditor

Interface for the route editor. The route editor gets the start and end points of the route, builds routes, and notifies about their updates and realignments through channels.

Extends: Hashable
public static func == (lhs: RouteEditor, rhs: RouteEditor) -> Bool

Returns a Boolean value indicating whether two values are equal.

public convenience init(
    context: Context
)

Function for creating a route editor.

Parameters
context
Methods
Properties
StatefulChannel<RouteEditorRoutesInfo>

Channel through which you can monitor updates of route information operated by the editor.

Channel through which you can monitor updates of route information operated by the editor.

StatefulChannel<RouteIndex?>

The channel through which you can monitor updates of the active route index. If there are no routes, nil is placed in this channel.

The channel through which you can monitor updates of the active route index. If there are no routes, nil is placed in this channel.