Sha256: da702d1be3a2b688393036fc2640db327ad78def49cf1c64bfe3dd8a2e26866e

Contents?: true

Size: 358 Bytes

Versions: 15

Compression:

Stored size: 358 Bytes

Contents

# @provides MotionKit::CAGradientLayerHelpers
# @requires MotionKit::CALayerHelpers
# @requires MotionKit::TreeLayout
module MotionKit
  class CAGradientLayerHelpers < CALayerHelpers
    targets CAGradientLayer

    def colors(values)
      target.colors = values.map { |color| color.is_a?(MotionKit.color_class) ? color.CGColor : color }
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motion-kit-1.1.1 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-1.1.0 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-1.0.3 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-1.0.2 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-1.0.1 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-1.0.0 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-0.18.0 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-0.17.0 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-0.16.0 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-0.15.0 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-0.14.2 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-0.14.1 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-0.14.0 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-0.13.0 lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
motion-kit-0.12.0 lib/motion-kit-cocoa/layouts/cagradientlayer_helpers.rb