fix: replace deprecated NavigationLink(isActive:) with navigationDestination(isPresented:)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -151,12 +151,9 @@ struct SwipeToDeleteRow<Content: View, Destination: View>: View {
|
||||
// Content row
|
||||
content()
|
||||
.offset(x: offset)
|
||||
.background(
|
||||
NavigationLink(destination: destination(), isActive: $showDetail) {
|
||||
EmptyView()
|
||||
.navigationDestination(isPresented: $showDetail) {
|
||||
destination()
|
||||
}
|
||||
.opacity(0)
|
||||
)
|
||||
.onTapGesture {
|
||||
if !isSwiping {
|
||||
showDetail = true
|
||||
|
||||
Reference in New Issue
Block a user