Skip to content

Conversation

@frytaz
Copy link

@frytaz frytaz commented Aug 5, 2013

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

@soffes
Copy link
Owner

soffes commented Sep 7, 2013

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?

@frytaz
Copy link
Author

frytaz commented Sep 9, 2013

Yeah that sounds better than DirectionTwoPoints :)

@frytaz
Copy link
Author

frytaz commented Sep 9, 2013

Updated naming in new commit, check it out.

@Jimw338
Copy link

Jimw338 commented Nov 23, 2018

(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:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants