[PM-39514] Fix debounce task to not use .task(id:)#2841
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the single-file change in Code Review DetailsNo findings. The change is well-scoped, correctly preserves the prior behavior, and is consistent with established codebase patterns. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2841 +/- ##
==========================================
- Coverage 81.17% 78.89% -2.29%
==========================================
Files 1026 1149 +123
Lines 65871 73183 +7312
==========================================
+ Hits 53472 57735 +4263
- Misses 12399 15448 +3049 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🎟️ Tracking
PM-39514
📔 Objective
Fix debounce task to not use .task(id:) because of update to Xcode 26.5.
debouncedTaskinView+Task.swiftwas still called.task(id:)internally. Even without @inlinable, the some View opaque return type descriptor for that function encodes _TaskModifier2 — the new @isolated(any) overload Swift 6.3.2 selects from the iOS 26 SDK. That type descriptor isn't present in the iOS 15 runtime, so the linker fails anywhere that calls debouncedTask/searchDebouncedTask, including ItemListView.swift in AuthenticatorShared.Fix: Replaced the internal
.task(id:)call with a privateDebouncedTaskModifierstruct that uses @State private var currentTask + .onAppear / .onChange / .onDisappear — the same pattern applied to all the other views in this branch. The public debouncedTask and searchDebouncedTask signatures are unchanged, so all call sites are unaffected.