26 lines
730 B
Swift
26 lines
730 B
Swift
//
|
|
// NavigationBarViewModuleBuilder.swift
|
|
// PrivadoVPN
|
|
//
|
|
// Created by Zhandos Bolatbekov on 21.01.2021.
|
|
// Copyright © 2021 Privado LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import UIKit
|
|
|
|
typealias NavigationBarViewModuleBuilderClosure = (ViewModuleControllerType?) -> (UIView)
|
|
|
|
final class NavigationBarViewModuleBuilder {
|
|
|
|
static func build(output: NavigationBarViewModuleOutput?) -> NavigationBarViewModuleBuilderClosure {
|
|
|
|
let creationBlock: NavigationBarViewModuleBuilderClosure = { _ in
|
|
let presenter = NavigationBarPresenter(output: output)
|
|
let view = NavigationBarView(output: presenter)
|
|
return view
|
|
}
|
|
return creationBlock
|
|
}
|
|
}
|