//
//  MainConfigurator.swift
//  NewsBuckets
//
//  Created by Jieyi on 15/05/2018.
//  Copyright © 2018 SmashKs All rights reserved.
//

import UIKit

class MainModuleConfigurator: ViperInjector {
    func configureModuleForViewInput<UIViewController>(viewInput: UIViewController) {
        if let viewController = viewInput as? MainViewController {
            configure(viewController: viewController)
        }
    }

    private func configure(viewController: MainViewController) {

        // MARK: - Data Manager

        let presenter = viperProvider.resolve(MainPresenter.self, argument: viewController)!
        viewController.presenter = presenter
    }
}
