Skip to content

Instantly share code, notes, and snippets.

@paulyoung
Created May 8, 2015 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulyoung/aa7d6af4213fbf72e454 to your computer and use it in GitHub Desktop.
Save paulyoung/aa7d6af4213fbf72e454 to your computer and use it in GitHub Desktop.
GoldenGate/UIKit/UIColor.swift
import UIKit
import JavaScriptCore
@objc protocol UIColorJSExport: class, JSExport {
// Mark: - Creating a UIColor with Preset Component Values
class func blackColor() -> UIColor
class func blueColor() -> UIColor
class func brownColor() -> UIColor
class func clearColor() -> UIColor
class func cyanColor() -> UIColor
class func darkGrayColor() -> UIColor
class func grayColor() -> UIColor
class func greenColor() -> UIColor
class func lightGrayColor() -> UIColor
class func magentaColor() -> UIColor
class func orangeColor() -> UIColor
class func purpleColor() -> UIColor
class func redColor() -> UIColor
class func whiteColor() -> UIColor
class func yellowColor() -> UIColor
}
extension UIColor: UIColorJSExport {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment