swiftui-expert-skill

Review SwiftUI code for state management and view composition best practices.

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/andreagrandi/book-corners-ios --skill swiftui-expert-skill-andreagrandi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftui-expert-skill
Source: https://github.com/andreagrandi/book-corners-ios/tree/main/.agents/skills/swiftui-expert-skill
Command: npx skills add https://github.com/andreagrandi/book-corners-ios --skill swiftui-expert-skill-andreagrandi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write, review, and improve SwiftUI code by ensuring adherence to best practices in state management, view composition, performance, and modern API adoption.

Core Features & Use Cases

  • Code Writing & Refactoring: Build new SwiftUI features or refactor existing views following modern patterns.
  • Code Quality Review: Audit code for correctness in state management, performance, accessibility, and API usage.
  • Modern API Adoption: Ensure usage of current, non-deprecated APIs and adoption of new features like Liquid Glass (iOS 26+).
  • Use Case: A developer is building a complex list view and is unsure about the best way to manage state updates for performance. They use this Skill to get guidance on efficient state management patterns and view structure.

Quick Start

Review the provided SwiftUI code for best practices in state management and view composition.

Frequently Asked Questions about swiftui-expert-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to manage state in complex SwiftUI views?

The best way to manage state in SwiftUI involves using modern patterns for state management and efficient view composition to ensure robust performance. This approach audits state correctness and optimizes view updates for complex list views.

How do I review SwiftUI code for performance and accessibility issues?

To review SwiftUI code for performance and accessibility, audit the implementation for correct state management, view composition, and native API usage. This ensures adherence to Apple design guidelines and identifies optimization opportunities.

Does this guidance cover macOS-specific APIs and iOS 26 Liquid Glass adoption?

Yes, the guidance covers macOS-specific APIs and iOS 26+ Liquid Glass adoption. It ensures adherence to current, non-deprecated APIs and helps integrate modern Apple design guidelines into your declarative UI applications.

How do I refactor existing SwiftUI views to follow modern declarative UI patterns?

To refactor existing SwiftUI views, apply modern declarative UI patterns by evaluating view composition and state management. This process improves code correctness, replaces deprecated APIs, and optimizes overall application performance.

Why does my SwiftUI list view have performance issues during state updates?

SwiftUI list view performance issues during state updates often stem from inefficient state management patterns and improper view structure. Auditing view composition and adopting optimized state handling patterns resolves these bottlenecks.