lib/ProMotion/screen/screen_navigation.rb in ProMotion-2.2.2 vs lib/ProMotion/screen/screen_navigation.rb in ProMotion-2.3.0

- old
+ new

@@ -1,7 +1,8 @@ module ProMotion module ScreenNavigation + include ProMotion::Support def open_screen(screen, args = {}) args = { animated: true }.merge(args) # Apply properties to instance @@ -28,17 +29,9 @@ app_delegate.open_root_screen(screen) end def open_modal(screen, args = {}) open screen, args.merge({ modal: true }) - end - - def app - UIApplication.sharedApplication - end - - def app_delegate - UIApplication.sharedApplication.delegate end def close_screen(args = {}) args ||= {} args = { sender: args } unless args.is_a?(Hash)