In this code
text = prospectiveText.substring( with: Range<String.Index>(prospectiveText.startIndex ..< prospectiveText.characters.index(prospectiveText.startIndex, offsetBy: maxLength)) )
i get the error Extraneous argument label 'with:' in call
after I updated xcode to 10.01
How to fix the bug?