Added SAMGradientViewDirectionTwoPoints
Now we can create gradients based on two points location, for example now we can create gradient from top left corner to bottom right.
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?
Yeah that sounds better than DirectionTwoPoints :)
Updated naming in new commit, check it out.
(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:)