Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UIKit
- class BaseViewController: UIViewController {
- var statusBarStyle: UIStatusBarStyle = .default {
- didSet {
- guard let navigationController = self.navigationController as? BaseNavigationViewController else { return }
- navigationController.statusBarStyle = statusBarStyle
- }
- }
- // ....
- }
Add Comment
Please, Sign In to add comment