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
viewController
StepsViewController
instance, with which user is currently interacting.legIndex
Zero-based index of the
RouteLeg
, which contains the maneuver.stepIndex
Zero-based index of the
RouteStep
, which contains the maneuver.cell
StepTableViewCell
instance, which visually represents primary, secondary and maneuver instructions. -
Called when the user dismisses the
StepsViewController
.Declaration
Swift
func didDismissStepsViewController(_ viewController: StepsViewController)
Parameters
viewController
StepsViewController
instance, which was dismissed.