             cString = paddedString
         }
 
-        if (cString.characters.count == 6) {
+        if cString.characters.count == 6 {
             var rgbValue: UInt32 = 0
             Scanner(string: cString).scanHexInt32(&rgbValue)
 

    class func color(fromHexRGB hex: String) -> UIColor {
        var cString: String = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased()

        if (cString.hasPrefix("#")) {
            cString = cString.substring(from: cString.index(cString.startIndex, offsetBy: 1))
        }

        if (cString.characters.count == 3) {
            var paddedString: String = ""
            let range = cString.characters.startIndex..<cString.characters.endIndex
            cString.enumerateSubstrings(in: range, options: .byComposedCharacterSequences, { (substring, _, _, _) in

            )
        }

        if cString.characters.count == 8 {
            var rgbValue: UInt32 = 0
            Scanner(string: cString).scanHexInt32(&rgbValue)

