← Catalog

No. 137 · mobile

SwiftUI Patterns

Declarative iOS UI with SwiftUI

Version 1.0.0 License MIT Format SKILL.md

Build iOS apps with SwiftUI: view composition, state management with @Observable, navigation stack, animations, and platform-specific adaptations.

When to use this skill

  • Creating a SwiftUI view
  • Using @Observable for state
  • Implementing navigation in SwiftUI

Core concepts

This skill provides guidance on swiftui patterns best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.

Installation

curl -LO https://opencode-skills.example/downloads/mobile/swiftui-patterns.zip
unzip swiftui-patterns.zip -d ~/.config/opencode/skills/

Restart OpenCode — the skill loads automatically.

When it triggers

  • creating a SwiftUI view
  • using @Observable for state
  • implementing navigation in SwiftUI