29 lines
619 B
Swift
29 lines
619 B
Swift
//
|
|
// PreferencesHeaderPresenter.swift
|
|
// PrivadoVPN
|
|
//
|
|
// Created by Murad Shabanov on 08.02.2022.
|
|
// Copyright © 2022 Privado LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
final class PreferencesHeaderPresenter: PreferencesHeaderControllerOutput {
|
|
|
|
weak var output: PreferenceOutputProtocol?
|
|
let title: String
|
|
|
|
init(output: PreferenceOutputProtocol, title: String) {
|
|
self.output = output
|
|
self.title = title
|
|
}
|
|
|
|
func leftIconAction() {
|
|
self.output?.closeController()
|
|
}
|
|
|
|
func rightIconAction() {
|
|
self.output?.closePreferences()
|
|
}
|
|
}
|