In Swift 4 you slice a string into a substring using subscripting . The use of substring(from:) , substring(to:) and substring(with:) are all deprecated.
In Swift 4 you slice a string into a substring using subscripting . The use of substring(from:) , substring(to:) and substring(with:) are all deprecated.