BottomBannerViewController
@IBDesignable
open class BottomBannerViewController : UIViewController, NavigationComponent
A user interface element designed to display the estimated arrival time, distance, and time remaining, as well as give the user a control the cancel the navigation session.
-
Arrival date formatter for banner view.
Declaration
Swift
public let dateFormatter: DateFormatter -
Date components formatter for banner view.
Declaration
Swift
public let dateComponentsFormatter: DateComponentsFormatter -
Distance formatter for banner view.
Declaration
Swift
public let distanceFormatter: DistanceFormatter
-
A padded spacer view that covers the bottom safe area of the device, if any.
Declaration
Swift
lazy open var bottomPaddingView: BottomPaddingView { get set } -
The main bottom banner view that all UI components are added to.
Declaration
Swift
lazy open var bottomBannerView: BottomBannerView { get set } -
The label that displays the estimated time until the user arrives at the final destination.
Declaration
Swift
open var timeRemainingLabel: TimeRemainingLabel! -
The label that represents the user’s remaining distance.
Declaration
Swift
open var distanceRemainingLabel: DistanceRemainingLabel! -
The label that displays the user’s estimate time of arrival.
Declaration
Swift
open var arrivalTimeLabel: ArrivalTimeLabel! -
The button that, by default, allows the user to cancel the navigation session.
Declaration
Swift
open var cancelButton: CancelButton! -
A vertical divider that seperates the cancel button and informative labels.
Declaration
Swift
open var verticalDividerView: SeparatorView! -
A horizontal divider that adds visual separation between the bottom banner and its superview.
Declaration
Swift
open var horizontalDividerView: SeparatorView!
-
The delegate for the view controller.
Seealso
BottomBannerViewControllerDelegateDeclaration
Swift
open weak var delegate: BottomBannerViewControllerDelegate? -
Initializes a
BottomBannerViewControllerthat provides ETA, Distance to arrival, and Time to arrival.Declaration
Swift
override public init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)Parameters
nibNameOrNilIgnored.
nibBundleOrNilIgnored.
-
Initializes a
BottomBannerViewControllerthat provides ETA, Distance to arrival, and Time to arrival.Declaration
Swift
required public init?(coder aDecoder: NSCoder)Parameters
aDecoderIgnored.
-
Declaration
Swift
public func navigationService(_ service: NavigationService, didRerouteAlong route: Route, at location: CLLocation?, proactive: Bool) -
Declaration
Swift
public func navigationService(_ service: NavigationService, didSwitchToCoincidentOnlineRoute coincideRoute: Route) -
Declaration
Swift
public func navigationService(_ service: NavigationService, didUpdate progress: RouteProgress, with location: CLLocation, rawLocation: CLLocation)
Install in Dash
BottomBannerViewController Class Reference