// Copyright SIX DAY LLC. All rights reserved. import Foundation protocol Coordinator: class { var coordinators: [Coordinator] {get set} } extension Coordinator { func addCoordinator(_ coordinator: Coordinator) { coordinators.append(coordinator) } func removeCoordinator(_ coordinator: Coordinator) { coordinators = coordinators.filter { $0 !== coordinator } } }