lib/ProMotion/screen/nav_bar_module.rb in ProMotion-2.0.1 vs lib/ProMotion/screen/nav_bar_module.rb in ProMotion-2.1.0.beta1
- old
+ new
@@ -48,9 +48,10 @@
nav.setModalTransitionStyle(args[:transition_style]) if args[:transition_style]
nav.setModalPresentationStyle(args[:presentation_style]) if args[:presentation_style]
nav
end
self.navigationController.toolbarHidden = !args[:toolbar] unless args[:toolbar].nil?
+ self.navigationController.setNavigationBarHidden(args[:hide_nav_bar], animated: false) unless args[:hide_nav_bar].nil?
end
private
def create_toolbar_button(args = {})