Add `PreviewViewController`.
PR adds PreviewViewController that allows to preview destination and routes and transition to NavigationViewController.
PreviewViewController can be in three states:
- Browsing
- Destination(s) preview
- Route(s) preview
Internally PreviewViewController uses NavigationView similarly to NavigationViewController. Users are able to inject their own bottom banner for each state. At the same time Navigation SDK provides default DestinationPreviewViewController and RoutesPreviewViewController for destination(s) preview and route(s) preview states respectively.
For testing purposes new PreviewViewControllerExample target was created.
Examples:



No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]] -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString? -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString? -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]] -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString? -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]] -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString? -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString? -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]] -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]] -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
InstructionsCardContainerView
-
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: Declaration From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString? -
modified method:
label(_:willPresent:as:)inInstructionsCardContainerViewType of change: key.doc.result_discussion From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
FloatingButton
-
removed source.lang.swift.decl.function.method.class:
rounded(image:selectedImage:size:)inFloatingButton
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
FloatingButton
-
removed source.lang.swift.decl.function.method.class:
rounded(image:selectedImage:size:)inFloatingButton
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
FloatingButton
-
removed source.lang.swift.decl.function.method.class:
rounded(image:selectedImage:size:)inFloatingButton
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
FloatingButton
-
removed source.lang.swift.decl.function.method.class:
rounded(image:selectedImage:size:)inFloatingButton
No breaking changes detected in MapboxCoreNavigation
Breaking Changes in MapboxNavigation
Breaking API Changes
FloatingButton
-
removed source.lang.swift.decl.function.method.class:
rounded(image:selectedImage:size:)inFloatingButton