blob: 07c9a8ba260dc04f825489a21c0cecc48da9c0a1 (
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
|
//
// LaunchViewController.swift
// MullvadVPN
//
// Created by pronebird on 18/11/2021.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import UIKit
class LaunchViewController: UIViewController {
override var preferredStatusBarStyle: UIStatusBarStyle {
.lightContent
}
init() {
super.init(nibName: nil, bundle: nil)
let storyboard = UIStoryboard(name: "LaunchScreen", bundle: nil)
guard let initialController = storyboard.instantiateInitialViewController() else { return }
initialController.view.translatesAutoresizingMaskIntoConstraints = false
addChild(initialController)
view.addSubview(initialController.view)
initialController.didMove(toParent: self)
NSLayoutConstraint.activate([
initialController.view.topAnchor.constraint(equalTo: view.topAnchor),
initialController.view.bottomAnchor.constraint(equalTo: view.bottomAnchor),
initialController.view.leadingAnchor.constraint(equalTo: view.leadingAnchor),
initialController.view.trailingAnchor.constraint(equalTo: view.trailingAnchor),
])
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
|