//
//  LoginViewControllerV2Factory.swift
//  Eurofurence
//
//  Created by Thomas Sherwood on 04/12/2017.
//  Copyright © 2017 Eurofurence. All rights reserved.
//

import UIKit.UIStoryboard
import UIKit.UIViewController

struct LoginViewControllerV2Factory: LoginSceneFactory {

    private let storyboard = UIStoryboard(name: "Login", bundle: .main)

    func makeLoginScene() -> UIViewController & LoginScene {
        return storyboard.instantiateViewController(withIdentifier: "LoginViewControllerV2") as! LoginViewControllerV2
    }

}

//
//  LoginViewControllerV2Factory.swift
//  Eurofurence
//
//  Created by Thomas Sherwood on 04/12/2017.
//  Copyright © 2017 Eurofurence. All rights reserved.
//

import UIKit.UIStoryboard
import UIKit.UIViewController

struct LoginViewControllerV2Factory {

    private let storyboard = UIStoryboard(name: "Login", bundle: .main)

    func makeLoginScene() -> UIViewController & LoginScene {
        return storyboard.instantiateViewController(withIdentifier: "LoginViewControllerV2") as! LoginViewControllerV2
    }

}

--- 
+++ 
@@ -9,7 +9,7 @@
 import UIKit.UIStoryboard
 import UIKit.UIViewController
 
-struct LoginViewControllerV2Factory {
+struct LoginViewControllerV2Factory: LoginSceneFactory {
 
     private let storyboard = UIStoryboard(name: "Login", bundle: .main)
 
Make login view controller factory conform to scene factory
