├── CoordinatorTabbbarStudy ├── Assets.xcassets │ ├── Contents.json │ ├── AccentColor.colorset │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── Home │ ├── Coordinator │ │ ├── HomeBaseCoordinator.swift │ │ └── HomeCoordinator.swift │ └── ViewControllers │ │ ├── HomeViewController.swift │ │ └── Home2ViewController.swift ├── Orders │ ├── Coordinator │ │ ├── OrdersBaseCoordinator.swift │ │ └── OrdersCoordinator.swift │ └── ViewControllers │ │ ├── Orders3ViewController.swift │ │ ├── OrdersViewController.swift │ │ └── Orders2ViewController.swift ├── Support │ └── Coordinator │ │ ├── DeepLinkBaseCoordinator.swift │ │ ├── DeepLinkCoordinator.swift │ │ ├── MainBaseCoordinator.swift │ │ ├── Coordinator.swift │ │ └── MainCoordinator.swift ├── SceneDelegate.swift ├── AppDelegate.swift ├── Base.lproj │ └── LaunchScreen.storyboard └── Info.plist └── CoordinatorTabbbarStudy.xcodeproj ├── project.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── xcuserdata └── leomaiapugliese.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ └── xcschememanagement.plist └── project.pbxproj /CoordinatorTabbbarStudy/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy.xcodeproj/xcuserdata/leomaiapugliese.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Home/Coordinator/HomeBaseCoordinator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HomeCoordinator.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | 11 | protocol HomeBaseCoordinator: Coordinator {} 12 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Orders/Coordinator/OrdersBaseCoordinator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // OrdersBaseCoordinator.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | protocol OrdersBaseCoordinator: Coordinator {} 11 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Support/Coordinator/DeepLinkBaseCoordinator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeepLinkCoordinator.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import Foundation 9 | 10 | protocol DeepLinkBaseCoordinator: FlowCoordinator { 11 | func handleDeeplink(deepLink: String) 12 | } 13 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy.xcodeproj/xcuserdata/leomaiapugliese.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CoordinatorTabbbarStudy.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Support/Coordinator/DeepLinkCoordinator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeepLinkCoordinator.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import Foundation 9 | 10 | class DeepLinkCoordinator: DeepLinkBaseCoordinator { 11 | 12 | func handleDeeplink(deepLink: String) { 13 | print("") 14 | } 15 | 16 | var parentCoordinator: MainBaseCoordinator? 17 | 18 | init(mainBaseCoordinator: MainBaseCoordinator) { 19 | self.parentCoordinator = mainBaseCoordinator 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Support/Coordinator/MainBaseCoordinator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MainCoordinator.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import Foundation 9 | 10 | protocol MainBaseCoordinator: Coordinator { 11 | var homeCoordinator: HomeBaseCoordinator { get } 12 | var ordersCoordinator: OrdersBaseCoordinator { get } 13 | var deepLinkCoordinator: DeepLinkBaseCoordinator { get } 14 | func handleDeepLink(text: String) 15 | } 16 | 17 | protocol HomeBaseCoordinated { 18 | var coordinator: HomeBaseCoordinator? { get } 19 | } 20 | 21 | protocol OrdersBaseCoordinated { 22 | var coordinator: OrdersBaseCoordinator? { get } 23 | } 24 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 11 | 12 | var window: UIWindow? 13 | 14 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 15 | 16 | guard let windowScene = (scene as? UIWindowScene) else { return } 17 | 18 | window = UIWindow(windowScene: windowScene) 19 | window?.rootViewController = MainCoordinator().start() 20 | window?.makeKeyAndVisible() 21 | } 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Orders/ViewControllers/Orders3ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Orders3ViewController.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 20/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | class Orders3ViewController: UIViewController, OrdersBaseCoordinated { 11 | 12 | var coordinator: OrdersBaseCoordinator? 13 | 14 | init(coordinator: OrdersBaseCoordinator) { 15 | super.init(nibName: nil, bundle: nil) 16 | self.coordinator = coordinator 17 | title = "Orders 3" 18 | } 19 | 20 | required init?(coder: NSCoder) { 21 | fatalError("init(coder:) has not been implemented") 22 | } 23 | 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | 27 | view.backgroundColor = .systemGreen 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | @main 11 | class AppDelegate: UIResponder, UIApplicationDelegate { 12 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 13 | return true 14 | } 15 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 16 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 17 | } 18 | 19 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Support/Coordinator/Coordinator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Coordinator.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | protocol FlowCoordinator: AnyObject { 11 | var parentCoordinator: MainBaseCoordinator? { get set } 12 | } 13 | 14 | protocol Coordinator: FlowCoordinator { 15 | var rootViewController: UIViewController { get set } 16 | func start() -> UIViewController 17 | func moveTo(flow: AppFlow, userData: [String: Any]?) 18 | @discardableResult func resetToRoot(animated: Bool) -> Self 19 | } 20 | 21 | extension Coordinator { 22 | var navigationRootViewController: UINavigationController? { 23 | get { 24 | (rootViewController as? UINavigationController) 25 | } 26 | } 27 | 28 | func resetToRoot(animated: Bool) -> Self { 29 | navigationRootViewController?.popToRootViewController(animated: animated) 30 | return self 31 | } 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Home/ViewControllers/HomeViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HomeViewController.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | class HomeViewController: UIViewController, HomeBaseCoordinated { 11 | var coordinator: HomeBaseCoordinator? 12 | 13 | var goToHome2button: UIButton! 14 | 15 | init(coordinator: HomeBaseCoordinator) { 16 | super.init(nibName: nil, bundle: nil) 17 | self.coordinator = coordinator 18 | title = "Home" 19 | } 20 | 21 | required init?(coder: NSCoder) { 22 | fatalError("init(coder:) has not been implemented") 23 | } 24 | 25 | override func viewDidLoad() { 26 | super.viewDidLoad() 27 | view.backgroundColor = .white 28 | 29 | configureButton() 30 | } 31 | 32 | private func configureButton() { 33 | goToHome2button = UIButton() 34 | view.addSubview(goToHome2button) 35 | goToHome2button.translatesAutoresizingMaskIntoConstraints = false 36 | 37 | goToHome2button.setTitle(" Go to Next Screen ", for: .normal) 38 | goToHome2button.layer.borderColor = UIColor.black.cgColor 39 | goToHome2button.layer.borderWidth = 2 40 | goToHome2button.backgroundColor = .black 41 | goToHome2button.addTarget(self, action: #selector(goToHome2), for: .touchUpInside) 42 | 43 | NSLayoutConstraint.activate([ 44 | goToHome2button.centerXAnchor.constraint(equalTo: view.centerXAnchor), 45 | goToHome2button.centerYAnchor.constraint(equalTo: view.centerYAnchor) 46 | ]) 47 | } 48 | 49 | @objc private func goToHome2() { 50 | coordinator?.moveTo(flow: .home(.doubleButtonScreen), userData: ["title": "Top Title"]) 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Orders/ViewControllers/OrdersViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // OrdersViewController.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | class OrdersViewController: UIViewController, OrdersBaseCoordinated { 11 | 12 | var coordinator: OrdersBaseCoordinator? 13 | var goToOrders2button: UIButton! 14 | 15 | init(coordinator: OrdersBaseCoordinator) { 16 | super.init(nibName: nil, bundle: nil) 17 | self.coordinator = coordinator 18 | title = "Orders" 19 | } 20 | 21 | required init?(coder: NSCoder) { 22 | fatalError("init(coder:) has not been implemented") 23 | } 24 | 25 | override func viewDidLoad() { 26 | super.viewDidLoad() 27 | 28 | view.backgroundColor = .systemTeal 29 | configureButton() 30 | } 31 | 32 | private func configureButton() { 33 | goToOrders2button = UIButton() 34 | view.addSubview(goToOrders2button) 35 | goToOrders2button.translatesAutoresizingMaskIntoConstraints = false 36 | 37 | goToOrders2button.setTitle(" Go to Orders 2 ", for: .normal) 38 | goToOrders2button.layer.borderColor = UIColor.black.cgColor 39 | goToOrders2button.layer.borderWidth = 2 40 | goToOrders2button.backgroundColor = .black 41 | goToOrders2button.addTarget(self, action: #selector(goToOrders2), for: .touchUpInside) 42 | 43 | NSLayoutConstraint.activate([ 44 | goToOrders2button.centerXAnchor.constraint(equalTo: view.centerXAnchor), 45 | goToOrders2button.centerYAnchor.constraint(equalTo: view.centerYAnchor) 46 | ]) 47 | } 48 | 49 | @objc private func goToOrders2() { 50 | coordinator?.moveTo(flow: .orders(.secondScreen), userData: nil) 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Orders/ViewControllers/Orders2ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Orders2ViewController.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 20/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | class Orders2ViewController: UIViewController, OrdersBaseCoordinated { 11 | 12 | var coordinator: OrdersBaseCoordinator? 13 | var goToOrders3button: UIButton! 14 | 15 | init(coordinator: OrdersBaseCoordinator) { 16 | super.init(nibName: nil, bundle: nil) 17 | self.coordinator = coordinator 18 | title = "Orders 2" 19 | } 20 | 21 | required init?(coder: NSCoder) { 22 | fatalError("init(coder:) has not been implemented") 23 | } 24 | 25 | override func viewDidLoad() { 26 | super.viewDidLoad() 27 | 28 | view.backgroundColor = .systemGray 29 | configureButton() 30 | } 31 | 32 | private func configureButton() { 33 | goToOrders3button = UIButton() 34 | view.addSubview(goToOrders3button) 35 | goToOrders3button.translatesAutoresizingMaskIntoConstraints = false 36 | 37 | goToOrders3button.setTitle(" Go to Orders 3 ", for: .normal) 38 | goToOrders3button.layer.borderColor = UIColor.black.cgColor 39 | goToOrders3button.layer.borderWidth = 2 40 | goToOrders3button.backgroundColor = .black 41 | goToOrders3button.addTarget(self, action: #selector(goToOrders3Screen), for: .touchUpInside) 42 | 43 | NSLayoutConstraint.activate([ 44 | goToOrders3button.centerXAnchor.constraint(equalTo: view.centerXAnchor), 45 | goToOrders3button.centerYAnchor.constraint(equalTo: view.centerYAnchor) 46 | ]) 47 | } 48 | 49 | @objc private func goToOrders3Screen() { 50 | coordinator?.moveTo(flow: .orders(.thirdScreen), userData: nil) 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Orders/Coordinator/OrdersCoordinator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // OrdersCoordinator.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | class OrdersCoordinator: OrdersBaseCoordinator { 11 | 12 | var parentCoordinator: MainBaseCoordinator? 13 | 14 | var rootViewController: UIViewController = UIViewController() 15 | 16 | func start() -> UIViewController { 17 | rootViewController = UINavigationController(rootViewController: OrdersViewController(coordinator: self)) 18 | return rootViewController 19 | } 20 | 21 | func moveTo(flow: AppFlow, userData: [String : Any]? = nil) { 22 | switch flow { 23 | case .orders(let screen): 24 | handleOrdersFlow(for: screen, userData: userData) 25 | default: 26 | parentCoordinator?.moveTo(flow: flow, userData: userData) 27 | } 28 | } 29 | 30 | private func handleOrdersFlow(for screen: OrdersScreen, userData: [String : Any]? = nil) { 31 | switch screen { 32 | case .firstScreen: 33 | resetToRoot(animated: false) 34 | case .secondScreen: 35 | handleGoToSecondScreen() 36 | case .thirdScreen: 37 | handleGoToThirdScreen() 38 | } 39 | } 40 | 41 | private func handleGoToSecondScreen() { 42 | resetToRoot(animated: false) 43 | navigationRootViewController?.pushViewController(Orders2ViewController(coordinator: self), animated: false) 44 | 45 | } 46 | 47 | private func handleGoToThirdScreen() { 48 | resetToRoot(animated: false) 49 | navigationRootViewController?.pushViewController(Orders2ViewController(coordinator: self), animated: false) 50 | navigationRootViewController?.pushViewController(Orders3ViewController(coordinator: self), animated: false) 51 | 52 | } 53 | 54 | @discardableResult 55 | func resetToRoot(animated: Bool) -> Self { 56 | navigationRootViewController?.popToRootViewController(animated: animated) 57 | return self 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UISceneConfigurationName 33 | Default Configuration 34 | UISceneDelegateClassName 35 | $(PRODUCT_MODULE_NAME).SceneDelegate 36 | 37 | 38 | 39 | 40 | UIApplicationSupportsIndirectInputEvents 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UISupportedInterfaceOrientations~ipad 55 | 56 | UIInterfaceOrientationPortrait 57 | UIInterfaceOrientationPortraitUpsideDown 58 | UIInterfaceOrientationLandscapeLeft 59 | UIInterfaceOrientationLandscapeRight 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Home/Coordinator/HomeCoordinator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HomeCoordinator.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | class HomeCoordinator: HomeBaseCoordinator { 11 | 12 | var parentCoordinator: MainBaseCoordinator? 13 | 14 | lazy var rootViewController: UIViewController = UIViewController() 15 | 16 | func start() -> UIViewController { 17 | rootViewController = UINavigationController(rootViewController: HomeViewController(coordinator: self)) 18 | return rootViewController 19 | } 20 | 21 | func moveTo(flow: AppFlow, userData: [String : Any]? = nil) { 22 | switch flow { 23 | case .home(let screen): 24 | handleHomeFlow(for: screen, userData: userData) 25 | default: 26 | parentCoordinator?.moveTo(flow: flow, userData: userData) 27 | } 28 | } 29 | 30 | private func handleHomeFlow(for screen: HomeScreen, userData: [String: Any]?) { 31 | switch screen { 32 | case .initialScreen: 33 | navigationRootViewController?.popToRootViewController(animated: true) 34 | case .doubleButtonScreen: 35 | guard let title = userData?["title"] as? String else { return } 36 | goToHome2ScreenWith(title: title) 37 | } 38 | } 39 | 40 | func goToHome2ScreenWith(title: String) { 41 | let home2ViewController = Home2ViewController(coordinator: self) 42 | home2ViewController.title = title 43 | navigationRootViewController?.pushViewController(home2ViewController, animated: true) 44 | } 45 | // 46 | // func goToFavoritesFlow() { 47 | // parentCoordinator?.moveTo(flow: .orders(.firstScreen)) 48 | // } 49 | // 50 | // func goToDeepViewInFavoriteTab() { 51 | // 52 | // DispatchQueue.main.asyncAfter(deadline: .now()) { [weak self] in 53 | // self?.parentCoordinator?.ordersCoordinator 54 | // .resetToRoot(animated: false) 55 | // } 56 | // DispatchQueue.main.asyncAfter(deadline: .now()+0.1) { [weak self] in 57 | // self?.parentCoordinator?.ordersCoordinator 58 | // .goToOrder2Screen(animated: false) 59 | // .goToOrder3Screen(animated: false) 60 | // self?.parentCoordinator?.moveTo(flow: .orders) 61 | // } 62 | // } 63 | 64 | func resetToRoot() -> Self { 65 | navigationRootViewController?.popToRootViewController(animated: false) 66 | return self 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Support/Coordinator/MainCoordinator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MainCoordinator.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | enum AppFlow { 11 | case home(HomeScreen) 12 | case orders(OrdersScreen) 13 | } 14 | 15 | enum HomeScreen { 16 | case initialScreen 17 | case doubleButtonScreen 18 | } 19 | 20 | enum OrdersScreen { 21 | case firstScreen 22 | case secondScreen 23 | case thirdScreen 24 | } 25 | 26 | class MainCoordinator: MainBaseCoordinator { 27 | 28 | var parentCoordinator: MainBaseCoordinator? 29 | 30 | lazy var homeCoordinator: HomeBaseCoordinator = HomeCoordinator() 31 | lazy var ordersCoordinator: OrdersBaseCoordinator = OrdersCoordinator() 32 | lazy var deepLinkCoordinator: DeepLinkBaseCoordinator = DeepLinkCoordinator(mainBaseCoordinator: self) 33 | 34 | lazy var rootViewController: UIViewController = UITabBarController() 35 | 36 | func start() -> UIViewController { 37 | 38 | let homeViewController = homeCoordinator.start() 39 | homeCoordinator.parentCoordinator = self 40 | homeViewController.tabBarItem = UITabBarItem(title: "Home", image: UIImage(systemName: "homekit"), tag: 0) 41 | 42 | let ordersViewController = ordersCoordinator.start() 43 | ordersCoordinator.parentCoordinator = self 44 | ordersViewController.tabBarItem = UITabBarItem(title: "Orders", image: UIImage(systemName: "doc.plaintext"), tag: 1) 45 | 46 | (rootViewController as? UITabBarController)?.viewControllers = [homeViewController,ordersViewController] 47 | 48 | return rootViewController 49 | } 50 | 51 | func moveTo(flow: AppFlow, userData: [String : Any]?) { 52 | switch flow { 53 | case .home: 54 | goToHomeFlow(flow) 55 | case .orders: 56 | goToOrdersFlow(flow) 57 | } 58 | } 59 | 60 | private func goToOrdersFlow(_ flow: AppFlow) { 61 | ordersCoordinator.moveTo(flow: flow, userData: nil) 62 | (rootViewController as? UITabBarController)?.selectedIndex = 1 63 | 64 | } 65 | 66 | private func goToHomeFlow(_ flow: AppFlow) { 67 | homeCoordinator.moveTo(flow: flow, userData: nil) 68 | (rootViewController as? UITabBarController)?.selectedIndex = 0 69 | 70 | } 71 | 72 | func handleDeepLink(text: String) { 73 | deepLinkCoordinator.handleDeeplink(deepLink: text) 74 | } 75 | 76 | func resetToRoot() -> Self { 77 | homeCoordinator.resetToRoot(animated: false) 78 | moveTo(flow: .home(.initialScreen), userData: nil) 79 | return self 80 | } 81 | 82 | } 83 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy/Home/ViewControllers/Home2ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HomeViewController.swift 3 | // CoordinatorTabbbarStudy 4 | // 5 | // Created by Leonardo Maia Pugliese on 19/04/21. 6 | // 7 | 8 | import UIKit 9 | 10 | class Home2ViewController: UIViewController, HomeBaseCoordinated { 11 | var coordinator: HomeBaseCoordinator? 12 | 13 | var goToFavoriteButton: UIButton! 14 | var goToFavoriteDeepViewButton: UIButton! 15 | 16 | init(coordinator: HomeBaseCoordinator) { 17 | super.init(nibName: nil, bundle: nil) 18 | self.coordinator = coordinator 19 | title = "Home 2" 20 | } 21 | 22 | required init?(coder: NSCoder) { 23 | fatalError("init(coder:) has not been implemented") 24 | } 25 | 26 | 27 | override func viewDidLoad() { 28 | super.viewDidLoad() 29 | view.backgroundColor = .systemOrange 30 | 31 | configureButtonGoToFavorite() 32 | configureGoToFavoriteDeepViewButton() 33 | } 34 | 35 | private func configureButtonGoToFavorite() { 36 | goToFavoriteButton = UIButton() 37 | view.addSubview(goToFavoriteButton) 38 | goToFavoriteButton.translatesAutoresizingMaskIntoConstraints = false 39 | 40 | goToFavoriteButton.setTitle(" Go to favorite tab ", for: .normal) 41 | goToFavoriteButton.layer.borderColor = UIColor.black.cgColor 42 | goToFavoriteButton.layer.borderWidth = 2 43 | goToFavoriteButton.backgroundColor = .black 44 | goToFavoriteButton.addTarget(self, action: #selector(goToFavoriteTab), for: .touchUpInside) 45 | 46 | NSLayoutConstraint.activate([ 47 | goToFavoriteButton.centerXAnchor.constraint(equalTo: view.centerXAnchor), 48 | goToFavoriteButton.centerYAnchor.constraint(equalTo: view.centerYAnchor) 49 | ]) 50 | } 51 | 52 | private func configureGoToFavoriteDeepViewButton() { 53 | goToFavoriteDeepViewButton = UIButton() 54 | view.addSubview(goToFavoriteDeepViewButton) 55 | goToFavoriteDeepViewButton.translatesAutoresizingMaskIntoConstraints = false 56 | 57 | goToFavoriteDeepViewButton.setTitle(" Go to deep view in Orders tab ", for: .normal) 58 | goToFavoriteDeepViewButton.layer.borderColor = UIColor.black.cgColor 59 | goToFavoriteDeepViewButton.layer.borderWidth = 2 60 | goToFavoriteDeepViewButton.backgroundColor = .red 61 | goToFavoriteDeepViewButton.addTarget(self, action: #selector(goToDeepViewInOrdersTab), for: .touchUpInside) 62 | 63 | NSLayoutConstraint.activate([ 64 | goToFavoriteDeepViewButton.topAnchor.constraint(equalTo: goToFavoriteButton.bottomAnchor, constant: 20), 65 | goToFavoriteDeepViewButton.centerXAnchor.constraint(equalTo: view.centerXAnchor) 66 | ]) 67 | } 68 | 69 | @objc private func goToFavoriteTab() { 70 | coordinator?.moveTo(flow: .orders(.firstScreen), userData: nil) 71 | } 72 | 73 | @objc private func goToDeepViewInOrdersTab() { 74 | coordinator?.moveTo(flow: .orders(.thirdScreen), userData: nil) 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /CoordinatorTabbbarStudy.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 44270A26262D9A9D00B0FE42 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A25262D9A9D00B0FE42 /* AppDelegate.swift */; }; 11 | 44270A28262D9A9D00B0FE42 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A27262D9A9D00B0FE42 /* SceneDelegate.swift */; }; 12 | 44270A2F262D9AA200B0FE42 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 44270A2E262D9AA200B0FE42 /* Assets.xcassets */; }; 13 | 44270A32262D9AA200B0FE42 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 44270A30262D9AA200B0FE42 /* LaunchScreen.storyboard */; }; 14 | 44270A3E262D9B3F00B0FE42 /* MainBaseCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A3D262D9B3F00B0FE42 /* MainBaseCoordinator.swift */; }; 15 | 44270A45262D9BE100B0FE42 /* HomeBaseCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A44262D9BE100B0FE42 /* HomeBaseCoordinator.swift */; }; 16 | 44270A49262D9BE900B0FE42 /* Coordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A48262D9BE900B0FE42 /* Coordinator.swift */; }; 17 | 44270A4F262D9CF400B0FE42 /* OrdersBaseCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A4E262D9CF400B0FE42 /* OrdersBaseCoordinator.swift */; }; 18 | 44270A55262D9D9600B0FE42 /* HomeCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A54262D9D9600B0FE42 /* HomeCoordinator.swift */; }; 19 | 44270A59262D9DFB00B0FE42 /* OrdersCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A58262D9DFB00B0FE42 /* OrdersCoordinator.swift */; }; 20 | 44270A5D262D9EC000B0FE42 /* MainCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A5C262D9EC000B0FE42 /* MainCoordinator.swift */; }; 21 | 44270A61262DA29600B0FE42 /* HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A60262DA29600B0FE42 /* HomeViewController.swift */; }; 22 | 44270A66262DA32300B0FE42 /* OrdersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A65262DA32300B0FE42 /* OrdersViewController.swift */; }; 23 | 44270A6A262E249E00B0FE42 /* DeepLinkBaseCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A69262E249E00B0FE42 /* DeepLinkBaseCoordinator.swift */; }; 24 | 44270A6E262E24EA00B0FE42 /* DeepLinkCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A6D262E24EA00B0FE42 /* DeepLinkCoordinator.swift */; }; 25 | 44270A71262EEB7400B0FE42 /* Home2ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A70262EEB7400B0FE42 /* Home2ViewController.swift */; }; 26 | 44270A74262EEF7700B0FE42 /* Orders2ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A73262EEF7700B0FE42 /* Orders2ViewController.swift */; }; 27 | 44270A77262EEFA200B0FE42 /* Orders3ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44270A76262EEFA200B0FE42 /* Orders3ViewController.swift */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 44270A22262D9A9D00B0FE42 /* CoordinatorTabbbarStudy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CoordinatorTabbbarStudy.app; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 44270A25262D9A9D00B0FE42 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33 | 44270A27262D9A9D00B0FE42 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 34 | 44270A2E262D9AA200B0FE42 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 35 | 44270A31262D9AA200B0FE42 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 36 | 44270A33262D9AA200B0FE42 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 44270A3D262D9B3F00B0FE42 /* MainBaseCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainBaseCoordinator.swift; sourceTree = ""; }; 38 | 44270A44262D9BE100B0FE42 /* HomeBaseCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeBaseCoordinator.swift; sourceTree = ""; }; 39 | 44270A48262D9BE900B0FE42 /* Coordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Coordinator.swift; sourceTree = ""; }; 40 | 44270A4E262D9CF400B0FE42 /* OrdersBaseCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrdersBaseCoordinator.swift; sourceTree = ""; }; 41 | 44270A54262D9D9600B0FE42 /* HomeCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeCoordinator.swift; sourceTree = ""; }; 42 | 44270A58262D9DFB00B0FE42 /* OrdersCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrdersCoordinator.swift; sourceTree = ""; }; 43 | 44270A5C262D9EC000B0FE42 /* MainCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainCoordinator.swift; sourceTree = ""; }; 44 | 44270A60262DA29600B0FE42 /* HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = ""; }; 45 | 44270A65262DA32300B0FE42 /* OrdersViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrdersViewController.swift; sourceTree = ""; }; 46 | 44270A69262E249E00B0FE42 /* DeepLinkBaseCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeepLinkBaseCoordinator.swift; sourceTree = ""; }; 47 | 44270A6D262E24EA00B0FE42 /* DeepLinkCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeepLinkCoordinator.swift; sourceTree = ""; }; 48 | 44270A70262EEB7400B0FE42 /* Home2ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Home2ViewController.swift; sourceTree = ""; }; 49 | 44270A73262EEF7700B0FE42 /* Orders2ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Orders2ViewController.swift; sourceTree = ""; }; 50 | 44270A76262EEFA200B0FE42 /* Orders3ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Orders3ViewController.swift; sourceTree = ""; }; 51 | /* End PBXFileReference section */ 52 | 53 | /* Begin PBXFrameworksBuildPhase section */ 54 | 44270A1F262D9A9D00B0FE42 /* Frameworks */ = { 55 | isa = PBXFrameworksBuildPhase; 56 | buildActionMask = 2147483647; 57 | files = ( 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 44270A19262D9A9D00B0FE42 = { 65 | isa = PBXGroup; 66 | children = ( 67 | 44270A24262D9A9D00B0FE42 /* CoordinatorTabbbarStudy */, 68 | 44270A23262D9A9D00B0FE42 /* Products */, 69 | ); 70 | sourceTree = ""; 71 | }; 72 | 44270A23262D9A9D00B0FE42 /* Products */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 44270A22262D9A9D00B0FE42 /* CoordinatorTabbbarStudy.app */, 76 | ); 77 | name = Products; 78 | sourceTree = ""; 79 | }; 80 | 44270A24262D9A9D00B0FE42 /* CoordinatorTabbbarStudy */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 44270A42262D9BAF00B0FE42 /* Orders */, 84 | 44270A41262D9BAA00B0FE42 /* Home */, 85 | 44270A3B262D9B2300B0FE42 /* Support */, 86 | 44270A25262D9A9D00B0FE42 /* AppDelegate.swift */, 87 | 44270A27262D9A9D00B0FE42 /* SceneDelegate.swift */, 88 | 44270A2E262D9AA200B0FE42 /* Assets.xcassets */, 89 | 44270A30262D9AA200B0FE42 /* LaunchScreen.storyboard */, 90 | 44270A33262D9AA200B0FE42 /* Info.plist */, 91 | ); 92 | path = CoordinatorTabbbarStudy; 93 | sourceTree = ""; 94 | }; 95 | 44270A3B262D9B2300B0FE42 /* Support */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 44270A3C262D9B2B00B0FE42 /* Coordinator */, 99 | ); 100 | path = Support; 101 | sourceTree = ""; 102 | }; 103 | 44270A3C262D9B2B00B0FE42 /* Coordinator */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 44270A3D262D9B3F00B0FE42 /* MainBaseCoordinator.swift */, 107 | 44270A48262D9BE900B0FE42 /* Coordinator.swift */, 108 | 44270A5C262D9EC000B0FE42 /* MainCoordinator.swift */, 109 | 44270A69262E249E00B0FE42 /* DeepLinkBaseCoordinator.swift */, 110 | 44270A6D262E24EA00B0FE42 /* DeepLinkCoordinator.swift */, 111 | ); 112 | path = Coordinator; 113 | sourceTree = ""; 114 | }; 115 | 44270A41262D9BAA00B0FE42 /* Home */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 44270A5F262DA28300B0FE42 /* ViewControllers */, 119 | 44270A43262D9BCD00B0FE42 /* Coordinator */, 120 | ); 121 | path = Home; 122 | sourceTree = ""; 123 | }; 124 | 44270A42262D9BAF00B0FE42 /* Orders */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 44270A64262DA31500B0FE42 /* ViewControllers */, 128 | 44270A4D262D9CE900B0FE42 /* Coordinator */, 129 | ); 130 | path = Orders; 131 | sourceTree = ""; 132 | }; 133 | 44270A43262D9BCD00B0FE42 /* Coordinator */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 44270A44262D9BE100B0FE42 /* HomeBaseCoordinator.swift */, 137 | 44270A54262D9D9600B0FE42 /* HomeCoordinator.swift */, 138 | ); 139 | path = Coordinator; 140 | sourceTree = ""; 141 | }; 142 | 44270A4D262D9CE900B0FE42 /* Coordinator */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 44270A4E262D9CF400B0FE42 /* OrdersBaseCoordinator.swift */, 146 | 44270A58262D9DFB00B0FE42 /* OrdersCoordinator.swift */, 147 | ); 148 | path = Coordinator; 149 | sourceTree = ""; 150 | }; 151 | 44270A5F262DA28300B0FE42 /* ViewControllers */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 44270A60262DA29600B0FE42 /* HomeViewController.swift */, 155 | 44270A70262EEB7400B0FE42 /* Home2ViewController.swift */, 156 | ); 157 | path = ViewControllers; 158 | sourceTree = ""; 159 | }; 160 | 44270A64262DA31500B0FE42 /* ViewControllers */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 44270A65262DA32300B0FE42 /* OrdersViewController.swift */, 164 | 44270A73262EEF7700B0FE42 /* Orders2ViewController.swift */, 165 | 44270A76262EEFA200B0FE42 /* Orders3ViewController.swift */, 166 | ); 167 | path = ViewControllers; 168 | sourceTree = ""; 169 | }; 170 | /* End PBXGroup section */ 171 | 172 | /* Begin PBXNativeTarget section */ 173 | 44270A21262D9A9D00B0FE42 /* CoordinatorTabbbarStudy */ = { 174 | isa = PBXNativeTarget; 175 | buildConfigurationList = 44270A36262D9AA200B0FE42 /* Build configuration list for PBXNativeTarget "CoordinatorTabbbarStudy" */; 176 | buildPhases = ( 177 | 44270A1E262D9A9D00B0FE42 /* Sources */, 178 | 44270A1F262D9A9D00B0FE42 /* Frameworks */, 179 | 44270A20262D9A9D00B0FE42 /* Resources */, 180 | ); 181 | buildRules = ( 182 | ); 183 | dependencies = ( 184 | ); 185 | name = CoordinatorTabbbarStudy; 186 | productName = CoordinatorTabbbarStudy; 187 | productReference = 44270A22262D9A9D00B0FE42 /* CoordinatorTabbbarStudy.app */; 188 | productType = "com.apple.product-type.application"; 189 | }; 190 | /* End PBXNativeTarget section */ 191 | 192 | /* Begin PBXProject section */ 193 | 44270A1A262D9A9D00B0FE42 /* Project object */ = { 194 | isa = PBXProject; 195 | attributes = { 196 | LastSwiftUpdateCheck = 1240; 197 | LastUpgradeCheck = 1240; 198 | TargetAttributes = { 199 | 44270A21262D9A9D00B0FE42 = { 200 | CreatedOnToolsVersion = 12.4; 201 | }; 202 | }; 203 | }; 204 | buildConfigurationList = 44270A1D262D9A9D00B0FE42 /* Build configuration list for PBXProject "CoordinatorTabbbarStudy" */; 205 | compatibilityVersion = "Xcode 9.3"; 206 | developmentRegion = en; 207 | hasScannedForEncodings = 0; 208 | knownRegions = ( 209 | en, 210 | Base, 211 | ); 212 | mainGroup = 44270A19262D9A9D00B0FE42; 213 | productRefGroup = 44270A23262D9A9D00B0FE42 /* Products */; 214 | projectDirPath = ""; 215 | projectRoot = ""; 216 | targets = ( 217 | 44270A21262D9A9D00B0FE42 /* CoordinatorTabbbarStudy */, 218 | ); 219 | }; 220 | /* End PBXProject section */ 221 | 222 | /* Begin PBXResourcesBuildPhase section */ 223 | 44270A20262D9A9D00B0FE42 /* Resources */ = { 224 | isa = PBXResourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 44270A32262D9AA200B0FE42 /* LaunchScreen.storyboard in Resources */, 228 | 44270A2F262D9AA200B0FE42 /* Assets.xcassets in Resources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXResourcesBuildPhase section */ 233 | 234 | /* Begin PBXSourcesBuildPhase section */ 235 | 44270A1E262D9A9D00B0FE42 /* Sources */ = { 236 | isa = PBXSourcesBuildPhase; 237 | buildActionMask = 2147483647; 238 | files = ( 239 | 44270A71262EEB7400B0FE42 /* Home2ViewController.swift in Sources */, 240 | 44270A6E262E24EA00B0FE42 /* DeepLinkCoordinator.swift in Sources */, 241 | 44270A4F262D9CF400B0FE42 /* OrdersBaseCoordinator.swift in Sources */, 242 | 44270A6A262E249E00B0FE42 /* DeepLinkBaseCoordinator.swift in Sources */, 243 | 44270A3E262D9B3F00B0FE42 /* MainBaseCoordinator.swift in Sources */, 244 | 44270A77262EEFA200B0FE42 /* Orders3ViewController.swift in Sources */, 245 | 44270A74262EEF7700B0FE42 /* Orders2ViewController.swift in Sources */, 246 | 44270A5D262D9EC000B0FE42 /* MainCoordinator.swift in Sources */, 247 | 44270A49262D9BE900B0FE42 /* Coordinator.swift in Sources */, 248 | 44270A45262D9BE100B0FE42 /* HomeBaseCoordinator.swift in Sources */, 249 | 44270A55262D9D9600B0FE42 /* HomeCoordinator.swift in Sources */, 250 | 44270A66262DA32300B0FE42 /* OrdersViewController.swift in Sources */, 251 | 44270A61262DA29600B0FE42 /* HomeViewController.swift in Sources */, 252 | 44270A59262D9DFB00B0FE42 /* OrdersCoordinator.swift in Sources */, 253 | 44270A26262D9A9D00B0FE42 /* AppDelegate.swift in Sources */, 254 | 44270A28262D9A9D00B0FE42 /* SceneDelegate.swift in Sources */, 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | }; 258 | /* End PBXSourcesBuildPhase section */ 259 | 260 | /* Begin PBXVariantGroup section */ 261 | 44270A30262D9AA200B0FE42 /* LaunchScreen.storyboard */ = { 262 | isa = PBXVariantGroup; 263 | children = ( 264 | 44270A31262D9AA200B0FE42 /* Base */, 265 | ); 266 | name = LaunchScreen.storyboard; 267 | sourceTree = ""; 268 | }; 269 | /* End PBXVariantGroup section */ 270 | 271 | /* Begin XCBuildConfiguration section */ 272 | 44270A34262D9AA200B0FE42 /* Debug */ = { 273 | isa = XCBuildConfiguration; 274 | buildSettings = { 275 | ALWAYS_SEARCH_USER_PATHS = NO; 276 | CLANG_ANALYZER_NONNULL = YES; 277 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 278 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 279 | CLANG_CXX_LIBRARY = "libc++"; 280 | CLANG_ENABLE_MODULES = YES; 281 | CLANG_ENABLE_OBJC_ARC = YES; 282 | CLANG_ENABLE_OBJC_WEAK = YES; 283 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 284 | CLANG_WARN_BOOL_CONVERSION = YES; 285 | CLANG_WARN_COMMA = YES; 286 | CLANG_WARN_CONSTANT_CONVERSION = YES; 287 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 288 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 289 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 290 | CLANG_WARN_EMPTY_BODY = YES; 291 | CLANG_WARN_ENUM_CONVERSION = YES; 292 | CLANG_WARN_INFINITE_RECURSION = YES; 293 | CLANG_WARN_INT_CONVERSION = YES; 294 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 295 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 296 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 297 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 298 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 299 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 300 | CLANG_WARN_STRICT_PROTOTYPES = YES; 301 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 302 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 303 | CLANG_WARN_UNREACHABLE_CODE = YES; 304 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 305 | COPY_PHASE_STRIP = NO; 306 | DEBUG_INFORMATION_FORMAT = dwarf; 307 | ENABLE_STRICT_OBJC_MSGSEND = YES; 308 | ENABLE_TESTABILITY = YES; 309 | GCC_C_LANGUAGE_STANDARD = gnu11; 310 | GCC_DYNAMIC_NO_PIC = NO; 311 | GCC_NO_COMMON_BLOCKS = YES; 312 | GCC_OPTIMIZATION_LEVEL = 0; 313 | GCC_PREPROCESSOR_DEFINITIONS = ( 314 | "DEBUG=1", 315 | "$(inherited)", 316 | ); 317 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 318 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 319 | GCC_WARN_UNDECLARED_SELECTOR = YES; 320 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 321 | GCC_WARN_UNUSED_FUNCTION = YES; 322 | GCC_WARN_UNUSED_VARIABLE = YES; 323 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 324 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 325 | MTL_FAST_MATH = YES; 326 | ONLY_ACTIVE_ARCH = YES; 327 | SDKROOT = iphoneos; 328 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 329 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 330 | }; 331 | name = Debug; 332 | }; 333 | 44270A35262D9AA200B0FE42 /* Release */ = { 334 | isa = XCBuildConfiguration; 335 | buildSettings = { 336 | ALWAYS_SEARCH_USER_PATHS = NO; 337 | CLANG_ANALYZER_NONNULL = YES; 338 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 339 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 340 | CLANG_CXX_LIBRARY = "libc++"; 341 | CLANG_ENABLE_MODULES = YES; 342 | CLANG_ENABLE_OBJC_ARC = YES; 343 | CLANG_ENABLE_OBJC_WEAK = YES; 344 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 345 | CLANG_WARN_BOOL_CONVERSION = YES; 346 | CLANG_WARN_COMMA = YES; 347 | CLANG_WARN_CONSTANT_CONVERSION = YES; 348 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 349 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 350 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 351 | CLANG_WARN_EMPTY_BODY = YES; 352 | CLANG_WARN_ENUM_CONVERSION = YES; 353 | CLANG_WARN_INFINITE_RECURSION = YES; 354 | CLANG_WARN_INT_CONVERSION = YES; 355 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 356 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 357 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 358 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 359 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 360 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 361 | CLANG_WARN_STRICT_PROTOTYPES = YES; 362 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 363 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 364 | CLANG_WARN_UNREACHABLE_CODE = YES; 365 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 366 | COPY_PHASE_STRIP = NO; 367 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 368 | ENABLE_NS_ASSERTIONS = NO; 369 | ENABLE_STRICT_OBJC_MSGSEND = YES; 370 | GCC_C_LANGUAGE_STANDARD = gnu11; 371 | GCC_NO_COMMON_BLOCKS = YES; 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 379 | MTL_ENABLE_DEBUG_INFO = NO; 380 | MTL_FAST_MATH = YES; 381 | SDKROOT = iphoneos; 382 | SWIFT_COMPILATION_MODE = wholemodule; 383 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 384 | VALIDATE_PRODUCT = YES; 385 | }; 386 | name = Release; 387 | }; 388 | 44270A37262D9AA200B0FE42 /* Debug */ = { 389 | isa = XCBuildConfiguration; 390 | buildSettings = { 391 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 392 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 393 | CODE_SIGN_STYLE = Automatic; 394 | DEVELOPMENT_TEAM = 544VHSBM9H; 395 | INFOPLIST_FILE = CoordinatorTabbbarStudy/Info.plist; 396 | LD_RUNPATH_SEARCH_PATHS = ( 397 | "$(inherited)", 398 | "@executable_path/Frameworks", 399 | ); 400 | PRODUCT_BUNDLE_IDENTIFIER = br.leo.CoordinatorTabbbarStudy; 401 | PRODUCT_NAME = "$(TARGET_NAME)"; 402 | SWIFT_VERSION = 5.0; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | }; 405 | name = Debug; 406 | }; 407 | 44270A38262D9AA200B0FE42 /* Release */ = { 408 | isa = XCBuildConfiguration; 409 | buildSettings = { 410 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 411 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 412 | CODE_SIGN_STYLE = Automatic; 413 | DEVELOPMENT_TEAM = 544VHSBM9H; 414 | INFOPLIST_FILE = CoordinatorTabbbarStudy/Info.plist; 415 | LD_RUNPATH_SEARCH_PATHS = ( 416 | "$(inherited)", 417 | "@executable_path/Frameworks", 418 | ); 419 | PRODUCT_BUNDLE_IDENTIFIER = br.leo.CoordinatorTabbbarStudy; 420 | PRODUCT_NAME = "$(TARGET_NAME)"; 421 | SWIFT_VERSION = 5.0; 422 | TARGETED_DEVICE_FAMILY = "1,2"; 423 | }; 424 | name = Release; 425 | }; 426 | /* End XCBuildConfiguration section */ 427 | 428 | /* Begin XCConfigurationList section */ 429 | 44270A1D262D9A9D00B0FE42 /* Build configuration list for PBXProject "CoordinatorTabbbarStudy" */ = { 430 | isa = XCConfigurationList; 431 | buildConfigurations = ( 432 | 44270A34262D9AA200B0FE42 /* Debug */, 433 | 44270A35262D9AA200B0FE42 /* Release */, 434 | ); 435 | defaultConfigurationIsVisible = 0; 436 | defaultConfigurationName = Release; 437 | }; 438 | 44270A36262D9AA200B0FE42 /* Build configuration list for PBXNativeTarget "CoordinatorTabbbarStudy" */ = { 439 | isa = XCConfigurationList; 440 | buildConfigurations = ( 441 | 44270A37262D9AA200B0FE42 /* Debug */, 442 | 44270A38262D9AA200B0FE42 /* Release */, 443 | ); 444 | defaultConfigurationIsVisible = 0; 445 | defaultConfigurationName = Release; 446 | }; 447 | /* End XCConfigurationList section */ 448 | }; 449 | rootObject = 44270A1A262D9A9D00B0FE42 /* Project object */; 450 | } 451 | --------------------------------------------------------------------------------