Skip to content

Can't intercept Markdown links activated by Android Talkback #435

@dfabulich

Description

@dfabulich
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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions