123456789101112131415161718192021222324252627282930 |
- //
- // CNavigationController.swift
- // ComPDFKit_Tools
- //
- // Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
- //
- // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
- // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
- // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
- // This notice may not be removed from this file.
- //
- import UIKit
- public class CNavigationController: UINavigationController {
- public override func viewDidLoad() {
- super.viewDidLoad()
-
- if #available(iOS 15.0, *) {
- let navigationBarAppearance = UINavigationBarAppearance()
- navigationBarAppearance.backgroundColor = CPDFColorUtils.CNavBackgroundColor()
- UINavigationBar.appearance().scrollEdgeAppearance = navigationBarAppearance
- UINavigationBar.appearance().standardAppearance = navigationBarAppearance
-
- UITableView.appearance().sectionHeaderTopPadding = 0
- }
- // Do any additional setup after loading the view.
- }
- }
|