mastodon-ios/Mastodon/Scene/Share/NavigationController/AdaptiveStatusBarStyleNavig...

17 lines
419 B
Swift
Raw Normal View History

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