Skip to content
Snippets Groups Projects
Unverified Commit 5ac3da2a authored by Marcin Krzyzanowski's avatar Marcin Krzyzanowski
Browse files

fix: Use safer enumeration for accessibilityRange(forLine:)

The existing code used textElements(for:) which can return an empty array. This patch uses enumerateTextElements(from:) instead, which is safer since it can enumerate elements starting at a given location without the risk of an empty result.
parent bb9fe40d
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment