lib/ProMotion/screen/screen_navigation.rb in ProMotion-1.1.2 vs lib/ProMotion/screen/screen_navigation.rb in ProMotion-1.2.0
- old
+ new
@@ -16,11 +16,11 @@
elsif args[:close_all]
open_root_screen screen
elsif args[:modal]
- present_modal_view_controller screen, args[:animated]
+ present_modal_view_controller screen, args[:animated], args[:completion]
elsif args[:in_tab] && self.tab_bar
present_view_controller_in_tab_bar_controller screen, args[:in_tab]
elsif self.navigationController
@@ -115,11 +115,11 @@
screen.navigationController ||= self.navigationController if screen.respond_to?("navigationController=")
screen.tab_bar ||= self.tab_bar if screen.respond_to?("tab_bar=")
end
end
- def present_modal_view_controller(screen, animated)
- self.presentModalViewController((screen.navigationController || screen), animated:animated)
+ def present_modal_view_controller(screen, animated, completion)
+ self.presentViewController((screen.navigationController || screen), animated:animated, completion:completion)
end
def present_view_controller_in_tab_bar_controller(screen, tab_name)
vc = open_tab tab_name
if vc