Sha256: f6bc55116b88208b9535295ab694f5c494ef1712523809cd767f61ae87f4de20

Contents?: true

Size: 241 Bytes

Versions: 11

Compression:

Stored size: 241 Bytes

Contents

module ProMotion
  module BehavesLikeScreen
    def pm_main_controller
      navigationController || self
    end
    alias_method :main_controller, :pm_main_controller
  end
end

UIViewController.send :include, ProMotion::BehavesLikeScreen

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ProMotion-0.7.8 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.7.6 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.7.5 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.7.4 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.7.3 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.7.2 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.7.1 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.7.0 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.6.5 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.6.4 lib/ProMotion/screens/behaves_like_screen.rb
ProMotion-0.6.3 lib/ProMotion/screens/behaves_like_screen.rb