TSBaseNavigationC.swift 789 B

123456789101112131415161718192021222324252627
  1. //
  2. // TSBaseNavigationC.swift
  3. // TSLiveWallpaper
  4. //
  5. // Created by 100Years on 2024/12/20.
  6. //
  7. import UIKit
  8. open class TSBaseNavigationC: UINavigationController, UIGestureRecognizerDelegate, UINavigationControllerDelegate, UINavigationBarDelegate {
  9. open override func viewDidLoad() {
  10. super.viewDidLoad()
  11. configureNavigationBar()
  12. view.backgroundColor = .clear
  13. interactivePopGestureRecognizer?.isEnabled = true;
  14. if (kIsRTL) {
  15. self.navigationBar.semanticContentAttribute = UISemanticContentAttribute.forceRightToLeft
  16. self.view.semanticContentAttribute = UISemanticContentAttribute.forceRightToLeft;
  17. }
  18. }
  19. private func configureNavigationBar() {
  20. self.navigationBar.isHidden = true
  21. }
  22. }