I got an error message when I call the following method
pathString.removeSubrange(Range(pathString.startIndex..<pathString.index(pathString.startIndex, offsetBy: 7)))
Here is the error message
Cannot invoke initializer for type 'Range<_>' with an argument list of type '(Range)'
How would I change these statements to get rid of this error the transfer over to XCode 10
and Swift 4.2
is really giving me a hard time.
Looks like this
if pathString.contains("file://") {
let startIndex = pathString.startIndex
let endIndex = pathString.index(pathString.startIndex, offsetBy: 7)
let range = startIndex..<endIndex
pathString.removeSubrange(range)
}