ios-swiftui

Installation
SKILL.md

ios-swiftui

Purpose

This skill provides expertise in SwiftUI for building declarative UIs in iOS apps, focusing on views, state management, animations, and navigation to streamline development.

When to Use

Use this skill for iOS projects requiring responsive interfaces, such as apps with dynamic content, user interactions, or complex navigation; ideal for new iOS apps (iOS 13+), prototyping, or migrating from UIKit.

Key Capabilities

  • Create and modify views using structs that conform to the View protocol.
  • Manage state with @State for local changes, @Binding for parent-child communication, @ObservedObject for external models, and @EnvironmentObject for app-wide data.
  • Implement animations via withAnimation{} and modifiers like .animation(.easeIn).
  • Handle navigation with NavigationStack, including stacks, lists, and sheets for multi-screen flows.

Usage Patterns

To build a SwiftUI view, define a struct conforming to View and use modifiers in the body; for state, wrap variables with @State and update via functions. Pattern: Use @EnvironmentObject for shared data by injecting via .environmentObject() in the app's root view. For lists, apply List{} with ForEach{} for dynamic content. Always preview views with #Preview{} for rapid iteration. To handle sheets, use .sheet(isPresented: $isShowing) {} on a View.

Related skills
Installs
22
GitHub Stars
5
First Seen
Mar 7, 2026