Skip to content

Instantly share code, notes, and snippets.

@morteza2128
Last active September 4, 2017 12:08
Show Gist options
  • Save morteza2128/d5058630cf5e8ed7e7ffcf76748b439f to your computer and use it in GitHub Desktop.
Save morteza2128/d5058630cf5e8ed7e7ffcf76748b439f to your computer and use it in GitHub Desktop.
Use struct in Swift namespace
extension UIColor {
struct MyDefaultsColor {
private init(){}
static let Red = UIColor(red: 1.0, green: 0.1491, blue: 0.0, alpha: 1.0)
static let Green = UIColor(red: 0.0, green: 0.5628, blue: 0.3188, alpha: 1.0)
static let Blue = UIColor(red: 0.0, green: 0.3285, blue: 0.5749, alpha: 1.0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment