GradientView icon indicating copy to clipboard operation
GradientView copied to clipboard

Added SAMGradientViewDirectionTwoPoints

Open frytaz opened this issue 12 years ago • 4 comments

Now we can create gradients based on two points location, for example now we can create gradient from top left corner to bottom right.

frytaz avatar Aug 05 '13 11:08 frytaz

I like the idea. I'm not too sure about the naming though. What if we added gradientStartPoint and gradientEndPoint and SAMGradientViewDirectionNone. If you set the direction to none, it uses the points. Otherwise, it will use the predefined ones. Thoughts?

soffes avatar Sep 07 '13 16:09 soffes

Yeah that sounds better than DirectionTwoPoints :)

frytaz avatar Sep 09 '13 06:09 frytaz

Updated naming in new commit, check it out.

frytaz avatar Sep 09 '13 07:09 frytaz

(Maybe this should be a "reply to an earlier post" - to paraphrase, "I don't know Git!). Maybe the Apple-Insanely-Long-Cocoa-Esque-Method-Name-Swift-Only-Slightly-Less of:

SAMLinearGradientFromPoint(_ to:)

Jimw338 avatar Nov 23 '18 10:11 Jimw338