ios-performance-profiler

Identifies potential performance bottlenecks in SwiftUI code including expensive view updates, unnecessary redraws, and memory issues. Use when code involves lists, animations, complex UI, or when the user asks about performance optimization.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ios-performance-profiler" with this command: npx skills add desquared/agents-rules-skills/desquared-agents-rules-skills-ios-performance-profiler

Performance Profiler

Checklist

View Redraws

  • Views only redraw when dependencies change
  • @State properly scoped
  • Stable view identity (no random IDs)

Lists

  • Use List not ScrollView + VStack for large data
  • Stable Identifiable IDs
  • Lightweight row views

Memory

  • No retain cycles ([weak self] in closures)
  • @StateObject for owned objects
  • Image caching for remote images

Body Computation

  • No heavy work in view body
  • Pre-compute expensive operations

Quick Wins

IssueFix
Parent redrawsExtract stable child views
Expensive bodyPre-compute or cache
Unstable IDsUse UUID in Identifiable
Retain cycle[weak self]
Broad animationScope to specific views

Debug

let _ = Self._printChanges() // In view body

Severity

  • 🔴 Critical: Visible lag, leaks
  • 🟡 Moderate: Noticeable impact
  • 🟢 Minor: Optimization opportunity

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

shared-bug-investigation

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

ios-accessibility-validator

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

android-accessibility-validator

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

android-kotlin-api-design-reviewer

No summary provided by upstream source.

Repository SourceNeeds Review