Fix review remarks.

This commit is contained in:
SBiOSoftWhare 2020-09-24 16:25:10 +02:00
parent 8242af6c06
commit 6ba5587bd0
4 changed files with 8 additions and 3 deletions

View file

@ -17,6 +17,8 @@
import Foundation
import Intents
/// The AppCoordinator is responsible of screen navigation and data injection at root application level. It decides if authentication or home screen should be shown and inject data needed for these flows, it changes the navigation stack on deep link, displays global warning.
/// This class should avoid to contain too many data management code not related to screen navigation logic. For example `MXSession` or push notification management should be handled in dedicated classes and report only navigation changes to the AppCoordinator.
final class AppCoordinator: NSObject, AppCoordinatorType {
// MARK: - Constants
@ -26,7 +28,9 @@ final class AppCoordinator: NSObject, AppCoordinatorType {
// MARK: Private
private let rootRouter: RootRouterType
// swiftlint:disable weak_delegate
private let legacyAppDelegate: LegacyAppDelegate = AppDelegate.theDelegate()
// swiftlint:enable weak_delegate
private weak var splitViewCoordinator: SplitViewCoordinatorType?
@ -54,7 +58,7 @@ final class AppCoordinator: NSObject, AppCoordinatorType {
// MARK: - Private methods
private func showLogin() {
private func showAuthentication() {
// TODO: Implement
}

View file

@ -16,6 +16,6 @@
import Foundation
/// `AppCoordinatorType` is a protocol describing a Coordinator that handle application navigation flow.
/// `AppCoordinatorType` is a protocol describing a Coordinator that handles application navigation flow.
protocol AppCoordinatorType: Coordinator {
}

View file

@ -60,6 +60,7 @@ final class SplitViewCoordinator: NSObject, SplitViewCoordinatorType {
tabBarCoordinator.delegate = self
tabBarCoordinator.splitViewMasterPresentableDelegate = self
tabBarCoordinator.start()
let detailNavigationController = self.createDetailNavigationController()
self.splitViewController.viewControllers = [tabBarCoordinator.toPresentable(), detailNavigationController]

View file

@ -23,7 +23,7 @@ final class RootRouter: RootRouterType {
// `rootViewController` animation constants
private enum RootViewControllerUpdateAnimation {
static let duration: TimeInterval = 0.5
static let duration: TimeInterval = 0.3
static let options: UIView.AnimationOptions = .transitionCrossDissolve
}