2021-04-01 08:39:15 +02:00
|
|
|
//
|
|
|
|
// AdaptiveStatusBarStyleNavigationController.swift
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Created by MainasuK Cirno on 2021-2-26.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
2021-07-14 14:28:41 +02:00
|
|
|
// Make status bar style adaptive for child view controller
|
2021-04-01 08:39:15 +02:00
|
|
|
// SeeAlso: `modalPresentationCapturesStatusBarAppearance`
|
2021-12-31 10:31:13 +01:00
|
|
|
class AdaptiveStatusBarStyleNavigationController: UINavigationController {
|
2021-04-01 08:39:15 +02:00
|
|
|
override var childForStatusBarStyle: UIViewController? {
|
2021-04-12 06:49:01 +02:00
|
|
|
visibleViewController
|
|
|
|
}
|
|
|
|
}
|