Sha256: cf3e8aa73750d4e3a1578dad00a86babc742597ba03d788a7f012bc36397dcce

Contents?: true

Size: 382 Bytes

Versions: 20

Compression:

Stored size: 382 Bytes

Contents

class BaseScreen < MotionPrime::Screen
  title "Base"
  attr_accessor :was_rendered

  def render
    self.was_rendered = true
    set_navigation_right_button "Test", action: :test, type: UIBarButtonItemStyleDone
  end
end

class SampleScreen < MotionPrime::Screen
  title 'Sample'

  def render
    @main_section = SampleSection.new(screen: self)
    @main_section.render
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
motion-prime-1.0.7 spec/factories/screens.rb
motion-prime-1.0.6 spec/factories/screens.rb
motion-prime-1.0.5 spec/factories/screens.rb
motion-prime-1.0.4 spec/factories/screens.rb
motion-prime-1.0.3 spec/factories/screens.rb
motion-prime-1.0.2 spec/factories/screens.rb
motion-prime-1.0.1 spec/factories/screens.rb
motion-prime-1.0.0 spec/factories/screens.rb
motion-prime-0.9.9.2 spec/factories/screens.rb
motion-prime-0.9.9.1 spec/factories/screens.rb
motion-prime-0.9.9 spec/factories/screens.rb
motion-prime-0.9.8 spec/factories/screens.rb
motion-prime-0.9.7 spec/factories/screens.rb
motion-prime-0.9.6 spec/helpers/screens.rb
motion-prime-0.9.5 spec/helpers/screens.rb
motion-prime-0.9.4 spec/helpers/screens.rb
motion-prime-0.9.3 spec/helpers/screens.rb
motion-prime-0.9.2 spec/helpers/screens.rb
motion-prime-0.9.1 spec/helpers/screens.rb
motion-prime-0.9.0 spec/helpers/screens.rb