Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanhimmelman committed Sep 21, 2017
1 parent c092a1d commit 950675d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/HexColorTransform.swift
Expand Up @@ -36,7 +36,7 @@ open class HexColorTransform: TransformType {
if let rgba = value as? String {
if rgba.hasPrefix("#") {
let index = rgba.characters.index(rgba.startIndex, offsetBy: 1)
let hex = rgba.substring(from: index)
let hex = String(rgba[index...])
return getColor(hex: hex)
} else {
return getColor(hex: rgba)
Expand Down

0 comments on commit 950675d

Please sign in to comment.