mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
27 lines
731 B
Swift
27 lines
731 B
Swift
//
|
|
// SplitViewController.swift
|
|
// NewsBlur
|
|
//
|
|
// Created by David Sinclair on 2020-08-27.
|
|
// Copyright © 2020 NewsBlur. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
/// Subclass of `UISplitViewController` to enable customizations.
|
|
class SplitViewController: UISplitViewController {
|
|
/// Update the theme of the split view controller.
|
|
@objc func updateTheme() {
|
|
|
|
}
|
|
|
|
override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
print("preferredStatusBarStyle: \(ThemeManager.shared.isDarkTheme ? "light" : "dark")")
|
|
|
|
return ThemeManager.shared.isDarkTheme ? .lightContent : .darkContent
|
|
}
|
|
|
|
override var childForStatusBarStyle: UIViewController? {
|
|
return nil
|
|
}
|
|
}
|