How can I use String substring in Swift 4? ‘substring(to:)’ is deprecated: Please use String slicing subscript with a ‘partial range from’ operator
I have the following simple code written in Swift 3: let str = “Hello, playground” let index = str.index(of: “,”)! let newStr = … Read more