pproenca avatar

Swift Optimise

A comprehensive performance optimization guide for Swift 6.2 and SwiftUI targeting iOS 26, organized into 19 rules across concurrency, rendering, and animation. Built for teams using modular MVVM-C architecture with strict separation between Feature, Domain, and Data layers. The concurrency section is the standout here, covering the full migration path from Combine to async/await, MainActor isolation, Sendable conformance, and actor-based shared state. The render performance rules are solid baseline advice (lazy containers, view decomposition, Canvas for complex graphics), while the animation section covers the standard SwiftUI toolkit. Use this when you're upgrading to Swift 6 strict concurrency or need a structured checklist for profiling and optimizing clinic-style modular codebases.

skills.sh installs
285
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill swift-optimise --agent claude-code

Installs into .claude/skills of the current project.

Files

Apple Swift/SwiftUI Performance Optimization Best Practices

Comprehensive guide for Swift and SwiftUI performance optimization. Contains 19 rules across 3 categories covering modern concurrency, render performance, and animation performance. Targets iOS 26 / Swift 6.2 with @Observable and Swift 6 strict concurrency.

Clinic Architecture Contract (iOS 26 / Swift 6.2)

All guidance in this skill assumes the clinic modular MVVM-C architecture:

  • Feature modules import Domain + DesignSystem only (never Data, never sibling features)
  • App target is the convergence point and owns DependencyContainer, concrete coordinators, and Route Shell wiring
  • Domain stays pure Swift and defines models plus repository, *Coordinating, ErrorRouting, and AppError contracts
  • Data owns SwiftData/network/sync/retry/background I/O and implements Domain protocols
  • Read/write flow defaults to stale-while-revalidate reads and optimistic queued writes
  • ViewModels call repository protocols directly (no default use-case/interactor layer)

When to Apply

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Code Review & Quality, Debugging, Mobile Development, Design & UI/UX
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1giulioco avatarnano-banana-promptgiulioco/skillsCraft highly effective prompts for Nano Banana Pro (Gemini image generation). Use when generating images with Nano Banana Pro for any purpose including photorea283skills.sh installs
2yonatangross avatarascii-visualizeryonatangross/orchestkitASCII diagram patterns for architecture, workflows, file trees, and data visualizations. Use when creating terminal-rendered diagrams, box-drawing layouts, prog283skills.sh installs
3patricio0312rev avataradr-writerpatricio0312rev/skillsCreates Architecture Decision Records documenting key technical decisions with context, alternatives considered, tradeoffs, consequences, and decision owners. U282skills.sh installs
4patricio0312rev avatarmonorepo-setuppatricio0312rev/skillsSets up monorepo architecture with Turborepo, pnpm workspaces, shared packages, and optimized build pipelines. Use when users request "monorepo setup", "Turbore280skills.sh installs
5pproenca avatardev-rfcpproenca/dot-skillsCreate well-structured RFCs and technical proposals for software projects. Use this skill whenever the user wants to write an RFC, technical proposal, design do279skills.sh installs
6casper-studios avatarpolishingcasper-studios/casper-marketplacePolish code changes by recovering context, checking against codebase guidelines, removing AI slop, and running review. Use when finalizing work on a branch befo275skills.sh installs