fix: replace deprecated NavigationLink(isActive:) with navigationDestination(isPresented:)
All checks were successful
Security Checks / dependency-audit (push) Successful in 13s
Security Checks / secret-scanning (push) Successful in 4s
Security Checks / dockerfile-lint (push) Successful in 3s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-03 11:51:01 -05:00
parent 85e0d07224
commit 401af3cb6d

View File

@@ -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