Joined February 2013


Supreme Gravity
New York, NY

Posted to Gradient fills with RubyMotion over 1 year ago

You can have multiple gradient sublayers. e.g. calling gview.layer.addSublayer(gradient) twice will yield

=> [#<CAGradientLayer:0xc8f8690>, #<CAGradientLayer:0x158625d0>]

To change an existing gradient you need to modify one of the sublayers--adding another CAGradientLayer won't overwrite the existing gradient layers.

192 Karma
17,892 Total ProTip Views