You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FB21736620: kAXVisibleCharacterRangeAttribute returns wrong range length in SwiftUI TextEditor on macOS Tahoe when caret is at the end of TextEditor #757
when using the Accessibility Framework, getting kAXVisibleCharacterRangeAttribute for a TextArea built with the SwiftUI TextEditor when the caret is at the end of the TextEditor returns 0, which is wrong. it should return the length of the visible text.
a step by step set of instructions to reproduce the problem
see the visible character range being printed in the Xcode debug console
notice that when you're typing at the end of the TextEditor the length is 0 instead of the correct length. pressing the delete key to remove a character will make the right length shown
i will be attaching a video too to this FB.
what results you expected
the API should return the proper length of the visible characters, which should be its count, not 0.
what results you actually saw
the length is being 0 instead of the real length of the visible characters. it creates issue for AX third party apps that rely on this information.