SwiftARGB 2.0.0

SwiftARGB 2.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by HFCoreUI.



SwiftARGB 2.0.0

  • By
  • DragonCherry

SwiftARGB

Example

To run the example project, clone the repo, and run pod install from the Example directory first.


let whiteColor = UIColor(rgbHex: 0xFFFFFF)

let whiteColor = UIColor(argbHex: 0xFFFFFFFF)

let whiteColor = UIColor(red: 0xFF, green: 0xFF, blue: 0xFF)

let whiteColor = UIColor(alpha: 0xFF, red: 0xFF, green: 0xFF, blue: 0xFF)

let rgbString = whiteColor.RGBString    // "FFFFFF"

let argbString = whiteColor.ARGBString  // "FFFFFFFF"

Requirements

Installation

SwiftARGB is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SwiftARGB"

Author

DragonCherry, [email protected]

License

SwiftARGB is available under the MIT license. See the LICENSE file for more info.