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 row
|
||||||
content()
|
content()
|
||||||
.offset(x: offset)
|
.offset(x: offset)
|
||||||
.background(
|
.navigationDestination(isPresented: $showDetail) {
|
||||||
NavigationLink(destination: destination(), isActive: $showDetail) {
|
destination()
|
||||||
EmptyView()
|
|
||||||
}
|
}
|
||||||
.opacity(0)
|
|
||||||
)
|
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
if !isSwiping {
|
if !isSwiping {
|
||||||
showDetail = true
|
showDetail = true
|
||||||
|
|||||||
Reference in New Issue
Block a user