Sha256: 41396948e09827c9227ee2f15df4b038e39b196562b8c4fd06ddc43df05d7214

Contents?: true

Size: 361 Bytes

Versions: 12

Compression:

Stored size: 361 Bytes

Contents

module MotionPrime
  class ImageElement < BaseElement
    after_render :fetch_image
    def view_class
      "UIImageView"
    end

    def fetch_image
      return unless computed_options[:url]
      view.setImageWithURL NSURL.URLWithString(computed_options[:url]),
                        placeholderImage: computed_options[:default].uiimage
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
motion-prime-0.3.1 motion-prime/elements/image.rb
motion-prime-0.3.0 motion-prime/elements/image.rb
motion-prime-0.2.1 motion-prime/elements/image.rb
motion-prime-0.2.0 motion-prime/elements/image.rb
motion-prime-0.1.7 motion-prime/elements/image.rb
motion-prime-0.1.6 motion-prime/elements/image.rb
motion-prime-0.1.5 motion-prime/elements/image.rb
motion-prime-0.1.4 motion-prime/elements/image.rb
motion-prime-0.1.3 motion-prime/elements/image.rb
motion-prime-0.1.2 motion-prime/elements/image.rb
motion-prime-0.1.1 motion-prime/elements/image.rb
motion-prime-0.1.0 motion-prime/elements/image.rb