I'm trying to implement Spring iOS Animation Library, but quite a few errors were generated. Code in question:
let startIndex = hex.endIndex.advancedBy(1)
Additional Code:
if hex.hasPrefix("#") {
let startIndex = hex.endIndex.advancedBy(1)
_ = hex.substring(from: startIndex)
}