blob: 66a5c71fd166218648d99449a326d82d9615ae94 (
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
|
//
// SelectLocationNavigationController.swift
// MullvadVPN
//
// Created by pronebird on 22/07/2020.
// Copyright © 2020 Mullvad VPN AB. All rights reserved.
//
import Foundation
import UIKit
class SelectLocationNavigationController: UINavigationController {
override var childForStatusBarStyle: UIViewController? {
return topViewController
}
override var childForStatusBarHidden: UIViewController? {
return topViewController
}
init(contentController: SelectLocationViewController) {
super.init(navigationBarClass: CustomNavigationBar.self, toolbarClass: nil)
viewControllers = [contentController]
}
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
// This initializer exists to prevent crash on iOS 12.
// See: https://stackoverflow.com/a/38335090/351305
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
|