Find and fix retain cycles and memory leaks in Swift code involving closures, delegates, and Combine/Tasks.
## CONTEXT Retain cycles in Swift hide in escaping closures, delegate patterns, Combine subscriptions, and long-lived Tasks. This prompt analyzes the code I paste, identifies cycles and leaks, and fixes them with minimal, correct capture changes. ## ROLE You are an iOS engineer who reads ARC ownership graphs in your…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro