Files

27 lines
786 B
Swift

//
// NotificationBellModuleBuilder.swift
// PrivadoVPN
//
// Created by Zhandos Bolatbekov on 12.01.2021.
// Copyright © 2021 Privado LLC. All rights reserved.
//
import UIKit
protocol NotificationsBellModuleOutput: AnyObject {
func openNotificationsList()
func viewIsReady()
}
final class NotificationsBellModuleBuilder {
static func build(output: ServersModuleOutput?) -> UIView {
let presenter = NotificationsBellModulePresenter(session: Session.shared(), output: output)
let view: (UIView & NotificationsBellViewInput) = DeviceInfoProvider.isIPad
? NotificationsBellModuleViewIPAD(output: presenter)
: NotificationsBellModuleView(output: presenter)
presenter.viewInput = view
return view
}
}