|
|
@@ -11,7 +11,7 @@ import SwiftUI
|
|
|
final class MainCoordinator: BaseCoordinator {
|
|
|
|
|
|
@Published
|
|
|
- var presentation: Route?
|
|
|
+ var modalPresentation: Route?
|
|
|
|
|
|
func run() -> some View {
|
|
|
showMainModule()
|
|
|
@@ -45,10 +45,6 @@ final class MainCoordinator: BaseCoordinator {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func onDismissPresentation() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
// MARK: - Private methods
|
|
|
|
|
|
private func showMainModule() -> some View {
|
|
|
@@ -67,10 +63,10 @@ final class MainCoordinator: BaseCoordinator {
|
|
|
self?.currentRouter.push(Route.feedback)
|
|
|
},
|
|
|
onModalProducts: { [weak self] in
|
|
|
- self?.presentation = .products
|
|
|
+ self?.modalPresentation = .products
|
|
|
},
|
|
|
onModalCart: { [weak self] in
|
|
|
- self?.presentation = .cart
|
|
|
+ self?.modalPresentation = .cart
|
|
|
},
|
|
|
onConfirmationDialog: { [weak self] in
|
|
|
self?.confirmationDialogPresenter.showDialog(
|
|
|
@@ -166,7 +162,7 @@ struct MainNavigationView: View {
|
|
|
destination: coordinator.buildDestination
|
|
|
)
|
|
|
}.sheet(
|
|
|
- item: $coordinator.presentation,
|
|
|
+ item: $coordinator.modalPresentation,
|
|
|
onDismiss: coordinator.onDismissPresentation,
|
|
|
content: coordinator.buildPresentation
|
|
|
).alert(
|