スキル一覧に戻る
cemege

swiftui-guidelines

by cemege

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: swiftui-guidelines description: Reference skill for SwiftUI state management, async patterns, and best practices. Use when implementing SwiftUI views and features. type: reference

SwiftUI Guidelines Reference

Best practices and patterns for SwiftUI development in this project.

Quick Navigation

Need to...Read
Manage state (@State, @Binding, etc.)state-management.md
Handle async operations, API callsasync-patterns.md
Compose views, avoid AnyViewcomposition.md
Organize code, use MARK commentscode-organization.md
Know what to do and avoidbest-practices.md

Core Philosophy

  • SwiftUI views in UIHostingController are the default UI paradigm
  • Avoid legacy UIKit patterns and unnecessary abstractions
  • Focus on simplicity, clarity, and native data flow
  • Let SwiftUI handle the complexity - don't fight the framework

Quick Reference

State Management

@State           // Local, ephemeral view state
@Binding         // Two-way data flow between views
@ObservedObject  // Shared state from ViewModel
@EnvironmentObject // App-wide singletons

Async Pattern

// One-time load (VC lifecycle)
Task { @MainActor in await viewModel.loadData() }

// SwiftUI task when repeat is intended
.task(id: cacheKey) { await viewModel.reload() }

Modern Swift

  • Use async/await over Combine
  • Use Swift Concurrency (actors)
  • Use @MainActor for UI updates

When to Use This Skill

Reference this skill when:

  • Implementing any SwiftUI feature
  • Deciding how to manage state
  • Writing async code
  • Organizing view code

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です