Sha256: 95b674a113f0d16de98a03e4252175ea3fabc0573c8102ce6c39683611bdc1e5

Contents?: true

Size: 348 Bytes

Versions: 15

Compression:

Stored size: 348 Bytes

Contents

module ProMotion
  module Support

    def app
      UIApplication.sharedApplication
    end

    def app_delegate
      UIApplication.sharedApplication.delegate
    end

    def app_window
      UIApplication.sharedApplication.delegate.window
    end

    def try(method, *args)
      send(method, *args) if respond_to?(method)
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ProMotion-3.0.0 lib/ProMotion/support/support.rb
ProMotion-2.8.2 lib/ProMotion/support/support.rb
ProMotion-2.8.1 lib/ProMotion/support/support.rb
ProMotion-2.8.0 lib/ProMotion/support/support.rb
ProMotion-2.7.1 lib/ProMotion/support/support.rb
ProMotion-2.7.0 lib/ProMotion/support/support.rb
ProMotion-2.6.1 lib/ProMotion/support/support.rb
ProMotion-2.6.0 lib/ProMotion/support/support.rb
ProMotion-2.5.0 lib/ProMotion/support/support.rb
ProMotion-2.5.0.beta1 lib/ProMotion/support/support.rb
ProMotion-2.4.2 lib/ProMotion/support/support.rb
ProMotion-2.4.1 lib/ProMotion/support/support.rb
ProMotion-2.4.0 lib/ProMotion/support/support.rb
ProMotion-2.3.1 lib/ProMotion/support/support.rb
ProMotion-2.3.0 lib/ProMotion/support/support.rb