Post

Replies

Boosts

Views

Activity

Comment on Issue with PasteButton and Background Gesture Conflict in SwiftUI
Starting from iOS 16, programmatic pasting raises a user alert. The requirement is to avoid system inquiries, which is why the recommended PasteButton is being used.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Issue with PasteButton and Background Gesture Conflict in SwiftUI
Hi, this is onPaste trailing closure, still print "tap background". Also I tried the init(supportedContentTypes:payloadAction:), still not working :(
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Issue with PasteButton and Background Gesture Conflict in SwiftUI
Thank you for the response. I have tried .simultaneousGesture just like your example code, but the problem is still there. When I click the PasteButton, it only shows "tap background". However, when I click the button, it displays "tap background" "tap button".
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23