Created
July 31, 2023 20:04
-
-
Save rnapier/a592aecd5a9b2649b5ab70115eea1a28 to your computer and use it in GitHub Desktop.
Demonstration of VoiceOver bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Demonstration of FB12811151 | |
// On some devices (so far we haven't found any newer than an 2020 SE2), VoiceOver will allow you to select | |
// the link by swiping down, and then will immediately re-select the entire text. The user generally cannot | |
// follow the link because it snaps back too quickly. | |
// | |
// On one iPhone 8, this did not reproduce until the device went to sleep, then it reliably reproduced. | |
import SwiftUI | |
let text = try! AttributedString(markdown: "Here is a link to [ArchiveOrg](https://archive.org). It should be selectable with the rotor without jumping back to the whole text.") | |
struct ContentView: View { | |
var body: some View { | |
VStack { | |
Text(text) | |
} | |
.padding() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment