performance expert

Performance optimization for Leavn iOS app.

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 "performance expert" with this command: npx skills add willsigmon/sigstack/willsigmon-sigstack-performance-expert

Performance Expert

Performance optimization for Leavn iOS app.

Main Thread Violations

Find heavy work in View body:

// BAD: In View body let image = processImage(data) // Blocks UI

// GOOD: In ViewModel, async Task { processedImage = await processImage(data) }

SwiftUI Rendering

  • Use @Observable (not @Published) for granular updates

  • EquatableView for expensive views

  • LazyVStack/LazyHStack for lists

  • drawingGroup() for complex graphics

Memory Issues

  • Capture [weak self] in closures

  • Break retain cycles in delegates

  • Use Instruments > Leaks to find issues

Battery/Thermal

  • Batch network requests

  • Reduce location update frequency

  • Use beginBackgroundTask sparingly

  • Profile with Instruments > Energy Log

Profiling Commands

Time Profile

xcrun xctrace record --template "Time Profiler" --launch -- /path/to/app

Memory

xcrun xctrace record --template "Leaks" --launch -- /path/to/app

Use when: Slow UI, battery drain, memory issues, thermal throttling

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.

General

swiftlint-autofix

No summary provided by upstream source.

Repository SourceNeeds Review
General

bitrise expert

No summary provided by upstream source.

Repository SourceNeeds Review
General

fastlane expert

No summary provided by upstream source.

Repository SourceNeeds Review
General

find-bug-root-cause

No summary provided by upstream source.

Repository SourceNeeds Review