'substring(from:)' is deprecated: Please use String slicing subscript with a 'partial range from' op

let newStr = String(str[..<index]) // = str.substring(to: index) In Swift 3 let newStr = String(str[index...]) // = str.substring(from: index) In Swif 3 let newStr = String(str[range]) // = str.substring(with: range) In Swift 3
相關文章
相關標籤/搜索