askill
performance-profiler

performance-profilerSafety 95Repository

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.

1 stars
1.2k downloads
Updated 2/3/2026

Package Files

Loading files...
SKILL.md

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

Install

Download ZIP
Requires askill CLI v1.0+β–Ά

AI Quality Score

72/100Analyzed 2/18/2026

Solid reference skill for SwiftUI performance analysis with actionable checklists and quick fixes. Covers view redraws, lists, memory, and body computation. Lacks step-by-step procedures but provides useful debugging tips. Well-structured and safe to use across projects."

95
75
70
55
65

Metadata

Licenseunknown
Version-
Updated2/3/2026
PublisherDesquared

Tags

No tags yet.