Skip to content

Instantly share code, notes, and snippets.

@rnapier
Created July 31, 2023 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnapier/a592aecd5a9b2649b5ab70115eea1a28 to your computer and use it in GitHub Desktop.
Save rnapier/a592aecd5a9b2649b5ab70115eea1a28 to your computer and use it in GitHub Desktop.
Demonstration of VoiceOver bug
// 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