123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import UIKit
- class NCMainNavigationController: UINavigationController {
-
- required init?(coder: NSCoder) {
- super.init(coder: coder)
- let appearance = UINavigationBarAppearance()
- appearance.configureWithOpaqueBackground()
- appearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.label]
- appearance.configureWithOpaqueBackground()
- appearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.label]
- appearance.backgroundColor = .systemBackground
- appearance.shadowColor = .clear
- appearance.shadowImage = UIImage()
- navigationBar.scrollEdgeAppearance = appearance
- navigationBar.standardAppearance = appearance
- navigationBar.tintColor = .systemBlue
- }
- }
|