title: How to resolve 'scanLocation' was deprecated in iOS 13.0
body: <p>When trying to use a Scanner I am getting the warning that 'scanLocation' was deprecated in iOS 13.0. Since being able to scan from the next location is rather fundamental to scanning a String, wondering what to use instead of scanLocation. Apple's documentation for <a href="https://developer.apple.com/documentation/foundation/scanner" rel="noreferrer">Scanner</a> does not even mention the deprecation, let alone suggest what has taken the place of scanLocation. </p>
  
  <p>Example of using scanLocation, which is deprecated:</p>
  
  <pre><code>while !scanner.isAtEnd {
      print(scanner.scanUpToCharacters(from: brackets))
      let block = scanner.string[scanner.currentIndex...]
      print(block)
      scanner.scanLocation = scanner.scanLocation + 1
  }
  </code></pre>