Skip to content

Instantly share code, notes, and snippets.

@aheze
Last active April 23, 2020 00:17
Show Gist options
  • Select an option

  • Save aheze/1e743645c7b2c2b2fc824d17bc098abe to your computer and use it in GitHub Desktop.

Select an option

Save aheze/1e743645c7b2c2b2fc824d17bc098abe to your computer and use it in GitHub Desktop.
for index in indicies {
...
/// ↓ Delete this ↓
/// print("\"\(originalFoundText)\" | Position: x: \(finalX), y: \(finalY), width: \(finalWidth), height: \(finalHeight)")
/// Todo: Step 2... place the rectangle "in real life"
/// ↓ Add this ↓
let rect = CGRect(x: finalX, y: finalY, width: finalWidth, height: finalHeight)
rectangles.append(rect)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment