Skip to content

.onLongPressGesture is not working for Text with link (only on Android) #371

Description

@marcprux

Discussed in https://github.com/orgs/skiptools/discussions/637

Originally posted by makcakir March 17, 2026
Using latest Skip Lite. Below example can be used to test.

import SwiftUI

struct TestView: View {
    
    @State var isPresented = false
    
    var body: some View {
        VStack(spacing: 16) {
            Text("Long press does not work on Android [Link](https://skip.tools)")
                .frame(maxWidth: .infinity, alignment: .leading)
                .background(Color(.systemBackground))
                .onLongPressGesture {
                    isPresented = true
                }
            Text("Long press works on both")
                .frame(maxWidth: .infinity, alignment: .leading)
                .background(Color(.systemBackground))
                .onLongPressGesture {
                    isPresented = true
                }
        }
        .padding(16)
        .confirmationDialog("Title", isPresented: $isPresented) {
            Button("Destructive", role: .destructive) {
            }
        }
    }
}
``` </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomposeLimitation of Jetpack Compose or issue with SwiftUI translation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions