DMColorManager is a simple library to use great colors for development your apps, which includes famous colors such as Twitter blue, Facebook blue, Instagram gray and so on.
Xcode7.3, iOS9.3.2
DMColorManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
CocoaPods
pod "DMColorManager"
Carthage ※Work in progress
import UIKit
import DMColorManager
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
self.view.backgroundColor = DMColorManager.twitterBlue()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
17 great colors are available with var.0.1.0. Example colors are below.
functionName | RGB |
---|---|
twitterBlue | (29, 202, 255) |
facebookBlue | (59, 89, 152) |
youtubeRed | (187, 0, 0) |
instagramBlue | (18, 86, 136) |
snapchatYellow | (255, 252, 180) |
vineGreen | (0, 191, 143) |
Daisuke Masuhara Twitter: @masuahra_
DMColorManager is available under the MIT license. See the LICENSE file for more info.