From 401af3cb6dcdaa6d9e6908c8999f6139fbcee954 Mon Sep 17 00:00:00 2001 From: Yusuf Suleman Date: Fri, 3 Apr 2026 11:51:01 -0500 Subject: [PATCH] fix: replace deprecated NavigationLink(isActive:) with navigationDestination(isPresented:) Co-Authored-By: Claude Opus 4.6 (1M context) --- .../Features/Fitness/Views/MealSectionView.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ios/Platform/Platform/Features/Fitness/Views/MealSectionView.swift b/ios/Platform/Platform/Features/Fitness/Views/MealSectionView.swift index a9e96ab..a56c4f4 100644 --- a/ios/Platform/Platform/Features/Fitness/Views/MealSectionView.swift +++ b/ios/Platform/Platform/Features/Fitness/Views/MealSectionView.swift @@ -151,12 +151,9 @@ struct SwipeToDeleteRow: View { // Content row content() .offset(x: offset) - .background( - NavigationLink(destination: destination(), isActive: $showDetail) { - EmptyView() - } - .opacity(0) - ) + .navigationDestination(isPresented: $showDetail) { + destination() + } .onTapGesture { if !isSwiping { showDetail = true