FindPrompts

Swift Memory Leak & Retain Cycle HunterPREMIUM

Find and fix retain cycles and memory leaks in Swift code involving closures, delegates, and Combine/Tasks.

6/11/2026
Prompt
## 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 30,000+ expert-crafted prompts — with Pro.

Unlock with Pro

Command Palette

Search for a command to run...