CosmicMind / CosmicMind/Material
NavigationBar Jumping Problem
- Dominant language
- Swift
- Stars
- 12k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Hi guys, first of all, thanks for creating such a great UI library. I enjoy using this framework.
Recently, I saw a problem about when navigation back through the back button. The navigation bar is jumping when back button pressed. My code is not customized, it s from sample project. Can you help me to solve jumping?

Main NavigationController code is below;
class AppNavigationController: NavigationController {
open override func prepare() {
super.prepare()
isMotionEnabled = true
guard let v = navigationBar as? NavigationBar else {
return
}
v.backgroundColor = .white
v.depthPreset = .none
v.dividerColor = Color.grey.lighten2
}
override var preferredStatusBarStyle: UIStatusBarStyle{
if #available(iOS 13.0, *) {
return .darkContent
} else {
return .default
}
}
}
These are the root ListViewController UI lifecycle functions. Nothing is special.
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
}
Contributor guide
Assessment
This issue has not been assessed yet.