Sha256: 38f824dd55c7a946f71381da5f18797fe9809d95657c970640382c6637add3aa

Contents?: true

Size: 324 Bytes

Versions: 5

Compression:

Stored size: 324 Bytes

Contents

class FunctionalScreen < PM::Screen
  attr_accessor :button_was_triggered
  
  title "Functional"
  
  def will_appear
    self.button_was_triggered = false
    add UILabel.alloc.initWithFrame([[ 10, 10 ], [ 300, 40 ]]),
      text: "Label Here"
  end
  
  def triggered_button
    self.button_was_triggered = true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ProMotion-0.7.4 spec/helpers/functional_screen.rb
ProMotion-0.7.3 spec/helpers/functional_screen.rb
ProMotion-0.7.2 spec/helpers/functional_screen.rb
ProMotion-0.7.1 spec/helpers/functional_screen.rb
ProMotion-0.7.0 spec/helpers/functional_screen.rb