fix(BookmarkListRow): prevent swipe actions from triggering URL open
All checks were successful
CI / build-and-deploy (push) Successful in 34s

Replace Button wrapper with onTapGesture so swipe gestures don't compete
with the row tap recognizer and accidentally open bookmarks.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Krishna Kumar
2026-05-24 13:49:20 -05:00
parent b7ae15ae87
commit a5cd9b1d03

View File

@@ -14,14 +14,13 @@ struct BookmarkListRow: View {
@State private var episodePickerBookmark: Bookmark? @State private var episodePickerBookmark: Bookmark?
var body: some View { var body: some View {
Button { onOpen() } label: {
BookmarkRow( BookmarkRow(
bookmark: bookmark, bookmark: bookmark,
readingProgress: readingProgress, readingProgress: readingProgress,
onPodcast: handlePodcast onPodcast: handlePodcast
) )
} .contentShape(Rectangle())
.buttonStyle(RowPressStyle()) .onTapGesture { onOpen() }
.listRowInsets(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16)) .listRowInsets(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))
.listRowSeparator(.visible) .listRowSeparator(.visible)
.swipeActions(edge: .trailing, allowsFullSwipe: true) { .swipeActions(edge: .trailing, allowsFullSwipe: true) {