blob: 2a1279e6fdba59fe483e8a007060e0b0692f0e34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
//
// ChangeLogViewController.swift
// MullvadVPN
//
// Created by pronebird on 24/03/2023.
// Copyright © 2023 Mullvad VPN AB. All rights reserved.
//
import UIKit
class ChangeLogViewController: UIViewController, RootContainment {
// MARK: - RootContainment
var preferredHeaderBarPresentation: HeaderBarPresentation {
return HeaderBarPresentation(style: .default, showsDivider: false)
}
var prefersHeaderBarHidden: Bool {
return false
}
// MARK: - Public
var onFinish: (() -> Void)?
func setApplicationVersion(_ string: String) {
contentView.setApplicationVersion(string)
}
func setChangeLogText(_ string: String) {
contentView.setChangeLogText(string)
}
// MARK: - View lifecycle
private let contentView = ChangeLogContentView()
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
override func loadView() {
view = contentView
contentView.didTapButton = { [weak self] in
self?.onFinish?()
}
}
}
|