28 lines
647 B
Swift
28 lines
647 B
Swift
//
|
|
// LaunchScreenModuleBuilder.swift
|
|
// PrivadoVPN
|
|
//
|
|
// Created by Viktor on 09.12.2020.
|
|
// Copyright © 2020 Privado LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import UIKit
|
|
|
|
protocol LaunchScreenModuleOutput {
|
|
func noticeAccepted()
|
|
}
|
|
|
|
final class LaunchScreenModuleBuilder {
|
|
|
|
static func build(output: LaunchScreenModuleOutput) -> UIViewController {
|
|
|
|
let presenter = LaunchScreenPresenter(output: output)
|
|
let controller = DeviceInfoProvider.isIPad
|
|
? LaunchScreenControllerIPAD(output: presenter)
|
|
: LaunchScreenController(output: presenter)
|
|
|
|
return controller
|
|
}
|
|
}
|