Sha256: ea75da87fc2db8d17fcb5d21ab852dd7079878b539cbb07d5b32b25e1861afc5

Contents?: true

Size: 295 Bytes

Versions: 6

Compression:

Stored size: 295 Bytes

Contents

class UnderOs::UI::Spinner < UnderOs::UI::View
  wraps UIActivityIndicatorView, tag: :spinner

  def initialize(options={})
    super
    show
  end

  def show
    @_.startAnimating
    self
  end

  def hide
    @_.stopAnimating
    self
  end

  def hidden
    @_.isAnimating == 0
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
under-os-ui-1.4.0 lib/under_os/ui/spinner.rb
under-os-1.3.0 lib/under_os/ui/spinner.rb
under-os-1.2.1 lib/under_os/ui/spinner.rb
under-os-1.2.0 lib/under_os/ui/spinner.rb
under-os-1.1.0 lib/under_os/ui/spinner.rb
under-os-1.0.0 lib/under_os/ui/spinner.rb