forked from zelo72/mastodon-ios
17 lines
425 B
Swift
17 lines
425 B
Swift
//
|
|
// AdaptiveStatusBarStyleNavigationController.swift
|
|
//
|
|
//
|
|
// Created by MainasuK Cirno on 2021-2-26.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
// Make status bar style adaptive for child view controller
|
|
// SeeAlso: `modalPresentationCapturesStatusBarAppearance`
|
|
final class AdaptiveStatusBarStyleNavigationController: UINavigationController {
|
|
override var childForStatusBarStyle: UIViewController? {
|
|
visibleViewController
|
|
}
|
|
}
|