BaseInstructionsBannerView
open class BaseInstructionsBannerView : UIControl
A banner view that contains the current step instruction along a route and responds to tap and
swipe gestures, as the base of InstructionsCardView and InstructionsBannerView.
-
A view that contains an image indicating a type of maneuver.
Declaration
Swift
public weak var maneuverView: ManeuverView! -
A primary instruction label indicates the current step.
Declaration
Swift
public weak var primaryLabel: PrimaryLabel! -
A secondary instruction label below the
PrimaryLabel, which provides detailed information about the current step..Declaration
Swift
public weak var secondaryLabel: SecondaryLabel! -
A styled label indicates the remaining distance along the current step.
Declaration
Swift
public weak var distanceLabel: DistanceLabel! -
A vertical view, which is used as a divider between
ManeuverView/DistanceLabelviews to the left andPrimaryLabel/SecondaryLabelviews to the right.Declaration
Swift
public weak var dividerView: UIView! -
An invisible helper view for visualizing the result of the constraints.
Declaration
Swift
public weak var separatorView: SeparatorView! -
A view, which indicates that there’re more steps in the current route.
If shown,
InstructionsBannerViewcan be swiped to the bottom to see all of these remaining steps.Declaration
Swift
public weak var stepListIndicatorView: StepListIndicatorView! -
A
Booleanvalue controls whether the banner view reponds to swipe gestures. Defaults tofalse.Declaration
Swift
@IBInspectable public var swipeable: Bool -
A
Booleanvalue controls whether the banner view shows theStepListIndicatorView. Defaults totrue.Declaration
Swift
@IBInspectable public var showStepIndicator: Bool { get set } -
The instruction banner view’s delegate that conforms to
InstructionsBannerViewDelegate.Declaration
Swift
public weak var delegate: InstructionsBannerViewDelegate? { get set } -
Distance formatter for banner view.
Declaration
Swift
public let distanceFormatter: DistanceFormatter -
The remaining distance of current step in meters.
Declaration
Swift
public var distance: CLLocationDistance? { get set } -
Updates the instructions banner info with a given
VisualInstructionBanner.Declaration
Swift
public func update(for instruction: VisualInstructionBanner?)Parameters
instructionThe
VisualInstructionBannerinstance to be presented. -
Updates the instructions banner distance info for a given
RouteStepProgress.Declaration
Swift
public func updateDistance(for currentStepProgress: RouteStepProgress)Parameters
currentStepProgressThe current
RouteStepProgressinstance that the instruction banner view is updating.
Install in Dash
BaseInstructionsBannerView Class Reference