In case you don’t know me, my name is Jake Mor. I’m a software engineer and digital designer from New York.

Here’s a simple extension to quickly add gradients to views. Keep in mind — Its not best practice to add extensions to classes as ubiquitous UIView, but its okay for smaller projects. It can easily be adapted to a separate class need be.

It’s really easy to use, here’s an example:

view.setBackgroundGradient(start: .red, end: .blue, type: .topRightBottomLeft)

Here’s the result:

And don’t worry — that doesn’t follow ShopTurn’s actual brand guidelines ;)

Psst! We’re hiring engineers at ShopTurn in NYC. Shoot over a resume if you’re interested: jake@shopturn.com

Thanks for reading. If you like this story and want to hear about future projects, follow me on Twitter!

Inspired by Ben Dietzkis incredible post: Swift 3: Easy Gradients

Haven’t given blogging a shot yet but my coffee is getting to me so I’ll give it a whirl. Here’s the .htaccess file I use for every one of my PHP projects:

// .htaccess (same directory as index.php)RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*)$ /PATH_TO_PROJ_DIR/index.php?path=$1 …

Jake Mor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store