EachNavigationBar
EachNavigationBar copied to clipboard
A custom navigation bar for each view controller.
Since bringing this (fantastic) library in, my UI test has failed when trying to press the back button in the navigation bar. Do you know if there is a trick...
不能使用 `edgesForExtendedLayout = UIRectEdge()`,否则系统自带的navBar会显示在顶部,出现两个navBar `nav.setNavigationBarHidden(true, animated: false)` 修改无效,`UINavigationController.viewWillLayoutSubviews`方法内已固定
建议支持开启配置后,又可以关闭配置。 场景:使用到第三方的控制器,不方便修改源码的时候 方案1:AOP, 看下是是否方便实现原生的方案,而不用创建一个新的Bar 方案2:navigation.configuration.isEnabled = false 还原现场,还原原生的样式
I tried to add searchController with this code but even in debug view hierarchy it doesn't appear. navigation.item.searchController = UISearchController(searchResultsController: nil) navigation.item.searchController?.searchBar.isHidden = false navigation.item.searchController?.hidesNavigationBarDuringPresentation = false
version:1.16.1
'UINavigationBarAppearance' is only available in iOS 13.0 or newer in the file EachNavigationBar.swift
切换到别的界面再返回此页面就正常了