Skip to content

Instantly share code, notes, and snippets.

View andrewcar's full-sized avatar

Andrew Carvajal andrewcar

View GitHub Profile

Keybase proof

I hereby claim:

  • I am andrewcar on github.
  • I am andrewsphone (https://keybase.io/andrewsphone) on keybase.
  • I have a public key ASA8QSulQA9AXsn8SjQE58MW4vBygJh3BdamNuQkK6BWzwo

To claim this, I am signing this object:

@andrewcar
andrewcar / UIDevice+DeviceType
Created August 13, 2018 20:23
Easy way to get current device type with dot notation
import UIKit
public enum DeviceType {
case iPhone4
case iPhone4s
case iPhone5
case iPhone5c
case iPhone5s
case iPhone6
case iPhone6Plus
@andrewcar
andrewcar / UIColorExtension.swift
Last active August 17, 2016 20:27
UIColor Extension
extension UIColor {
// light shades
class func flatBlack() -> UIColor {
return UIColor(red: 43/255, green: 43/255, blue: 43/255, alpha: 1)
}
class func flatBlue() -> UIColor {
return UIColor(red: 80/255, green: 102/255, blue: 161/255, alpha: 1)