Text("Markdown [Link text](example://intercept) to intercept")
.environment(\.openURL, OpenURLAction { url in
logger.info("Intercepted link: \(url)")
return OpenURLAction.Result.handled
})
When you tap on the link with your finger, it will log "Intercepted link," but if you turn on Android Talkback, navigate to the link, and activate it, it will bypass the OpenURLAction.
This is happening because link handling is implemented with a pointerInput modifier.
When you tap on the link with your finger, it will log "Intercepted link," but if you turn on Android Talkback, navigate to the link, and activate it, it will bypass the
OpenURLAction.This is happening because link handling is implemented with a
pointerInputmodifier.