diff --git a/README.md b/README.md index 11e2403..3b1ef5e 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,8 @@ Run `bundle install` in Terminal to install ProMotion. Go into your app/app_delegate.rb file and add the following: ```ruby -class AppDelegate < ProMotion::AppDelegateParent +# Note: ProMotion::AppDelegateParent is an alias to ProMotion::Delegate +class AppDelegate < ProMotion::Delegate def on_load(app, options) open HomeScreen.new(nav_bar: true) end diff --git a/lib/ProMotion/app_delegate.rb b/lib/ProMotion/delegate.rb similarity index 94% rename from lib/ProMotion/app_delegate.rb rename to lib/ProMotion/delegate.rb index 63ecf69..53e5a38 100644 --- a/lib/ProMotion/app_delegate.rb +++ b/lib/ProMotion/delegate.rb @@ -1,5 +1,5 @@ module ProMotion - class AppDelegateParent + class Delegate include ProMotion::ScreenTabs attr_accessor :window @@ -60,4 +60,5 @@ module ProMotion @home_screen.nil? == false end end + class AppDelegateParent < Delegate; end # For backwards compatibility end \ No newline at end of file