'advanceBy'已被明确标记为不可用 - Swift / Spring iOS Library

时间:2016-09-09 19:39:31

标签: ios swift swift3

我正在尝试实现Spring iOS动画库,但是生成了很多错误。 有问题的代码:

let startIndex = hex.endIndex.advancedBy(1)

附加代码:

if hex.hasPrefix("#") {
        let startIndex = hex.endIndex.advancedBy(1)
        _   = hex.substring(from: startIndex)
    }

0 个答案:

没有答案