Productivity: Tweak templates a bit more

This commit is contained in:
manuroe
2019-04-04 21:06:46 +02:00
parent 456a37fdfc
commit bad2f2ca8a
3 changed files with 6 additions and 5 deletions

View File

@@ -68,11 +68,11 @@ final class FlowTemplateCoordinator: FlowTemplateCoordinatorType {
// MARK: - TemplateScreenCoordinatorDelegate
extension FlowTemplateCoordinator: TemplateScreenCoordinatorDelegate {
func templateScreenCoordinator(_ templateScreenCoordinator: TemplateScreenCoordinatorType, didCompleteWithMessage message: String) {
func templateScreenCoordinator(_ coordinator: TemplateScreenCoordinatorType, didCompleteWithMessage message: String) {
self.delegate?.flowTemplateCoordinatorDidComplete(self)
}
func templateScreenCoordinatorDidCancel(_ templateScreenCoordinator: TemplateScreenCoordinatorType) {
func templateScreenCoordinatorDidCancel(_ coordinator: TemplateScreenCoordinatorType) {
self.delegate?.flowTemplateCoordinatorDidComplete(self)
}
}

View File

@@ -17,7 +17,7 @@
import Foundation
@objc protocol FlowTemplateCoordinatorBridgePresenterDelegate {
func flowTemplateCoordinatorBridgePresenterDelegateDidComplete(_ flowTemplateCoordinatorBridgePresenter: FlowTemplateCoordinatorBridgePresenter)
func flowTemplateCoordinatorBridgePresenterDelegateDidComplete(_ coordinatorBridgePresenter: FlowTemplateCoordinatorBridgePresenter)
}
/// FlowTemplateCoordinatorBridgePresenter enables to start FlowTemplateCoordinator from a view controller.
@@ -71,7 +71,7 @@ final class FlowTemplateCoordinatorBridgePresenter: NSObject {
// MARK: - FlowTemplateCoordinatorDelegate
extension FlowTemplateCoordinatorBridgePresenter: FlowTemplateCoordinatorDelegate {
func flowTemplateCoordinatorDidComplete(_ flowTemplateCoordinator: FlowTemplateCoordinatorType) {
func flowTemplateCoordinatorDidComplete(_ coordinator: FlowTemplateCoordinatorType) {
self.delegate?.flowTemplateCoordinatorBridgePresenterDelegateDidComplete(self)
}
}

View File

@@ -28,7 +28,8 @@ final class TemplateScreenCoordinator: TemplateScreenCoordinatorType {
private let templateScreenViewController: TemplateScreenViewController
// MARK: Public
// Must be used only internally
var childCoordinators: [Coordinator] = []
weak var delegate: TemplateScreenCoordinatorDelegate?