StepsViewControllerDelegate
public protocol StepsViewControllerDelegate : AnyObject
StepsViewControllerDelegate provides methods for user interactions in a StepsViewController.
-
Called when the user selects a step in a
StepsViewController.Declaration
Swift
func stepsViewController(_ viewController: StepsViewController, didSelect legIndex: Int, stepIndex: Int, cell: StepTableViewCell)Parameters
viewControllerStepsViewControllerinstance, with which user is currently interacting.legIndexZero-based index of the
RouteLeg, which contains the maneuver.stepIndexZero-based index of the
RouteStep, which contains the maneuver.cellStepTableViewCellinstance, which visually represents primary, secondary and maneuver instructions. -
Called when the user dismisses the
StepsViewController.Declaration
Swift
func didDismissStepsViewController(_ viewController: StepsViewController)Parameters
viewControllerStepsViewControllerinstance, which was dismissed.
Install in Dash
StepsViewControllerDelegate Protocol Reference