swiftui

Provides best practices for SwiftUI development across Apple platforms.

7|1|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/ar4mirez/samuel --skill swiftui-ar4mirez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftui
Source: https://github.com/ar4mirez/samuel/tree/main/template/.claude/skills/swiftui
Command: npx skills add https://github.com/ar4mirez/samuel --skill swiftui-ar4mirez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for developing user interfaces across all Apple platforms using SwiftUI, ensuring modern, efficient, and maintainable code.

Core Features & Use Cases

  • Declarative UI Patterns: Learn to structure your UI code for clarity and reusability.
  • State Management: Master SwiftUI's state management tools like @State, @Binding, and @Observable.
  • Platform Integration: Understand how to integrate with platform features and navigate between views.
  • Use Case: When starting a new iOS app, use this Skill to ensure your UI code follows Apple's recommended patterns for state management, view composition, and navigation, leading to a more robust and scalable application.

Quick Start

Use the swiftui skill to generate a basic SwiftUI view with a text field and a button.

Frequently Asked Questions about swiftui

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

FAQPage Schema
How do I manage state in SwiftUI using @Observable and @Binding?

Structure declarative UI in SwiftUI by following provided patterns for view composition and reusability. This approach organizes view code hierarchically, making layouts clearer and easier to maintain across Apple platforms.

What is the best way to implement NavigationStack for iOS app development?

Use this SwiftUI guidance to establish architecture patterns for list and grid layouts, form handling, and testing strategies. It helps construct robust, scalable applications by enforcing modern structural standards.

How do I optimize SwiftUI performance for complex list and grid layouts?

Optimize SwiftUI list and grid layouts by applying specific performance guardrails and architectural patterns. This prevents UI lag and ensures smooth scrolling when rendering large datasets across Apple platforms.

Does this SwiftUI guidance cover testing strategies for declarative UI?

Yes, this guidance includes testing strategies specifically designed for SwiftUI declarative UI. It covers methodologies to validate view composition, state management, and navigation flows effectively.

Can I use these SwiftUI patterns for all Apple platforms?

Yes, these SwiftUI patterns and best practices are designed for developing user interfaces across all Apple platforms. They ensure code remains modern, efficient, and maintainable regardless of the target device.