Last active
September 4, 2017 12:08
-
-
Save morteza2128/d5058630cf5e8ed7e7ffcf76748b439f to your computer and use it in GitHub Desktop.
Use struct in Swift namespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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