Sha256: 7d1381a1bbaa3bbd8e62014cb48626bf848e1160163419718adf2ebf6eb71797

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

Stored size: 298 Bytes

Contents

class UnderOs::UI::Progress < UnderOs::UI::View
  wraps UIProgressView, tag: :progress

  def initialize(options={})
    super

    self.value = options[:value] if options[:value]
  end

  def value
    @_.progress
  end

  def value=(value)
    @_.setProgress value.to_f, animated: true
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

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