Skip to content

Commit

Permalink
Fix a bug on iOS 17 where you couldn't long press on a message. (#3567)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave authored Nov 28, 2024
1 parent 751be7b commit c598b63
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ struct TimelineItemBubbledStylerView<Content: View>: View {

var messageBubbleWithActions: some View {
messageBubble
.onTapGesture {
// We need a tap gesture before the long press gesture below, otherwise something
// on iOS 17 hijacks the long press and you can't bring up the context menu. This
// is no longer an issue on iOS 18. Note: it's fine for this to be empty, we handle
// specific taps within the timeline views themselves.
}
.longPressWithFeedback {
context.send(viewAction: .displayTimelineItemMenu(itemID: timelineItem.id))
}
Expand Down

0 comments on commit c598b63

Please sign in to comment.