swiftui-review

SwiftUIのベストプラクティスに基づくコードレビュー。パフォーマンス、アクセシビリティ、アーキテクチャをチェック。Use when: SwiftUI、View、レビュー、リファクタリング を依頼された時。

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 29, 2025

When & Why to Use This Skill

This Claude skill provides professional-grade code reviews for SwiftUI applications, focusing on performance optimization, accessibility standards, and architectural integrity. It helps developers identify common pitfalls such as redundant state management, missing accessibility labels, and bloated view structures to ensure high-quality, maintainable iOS/macOS code.

Use Cases

  • Performance Optimization: Identifying unnecessary @State usage or excessive re-renders in complex SwiftUI views to improve app responsiveness and battery life.
  • Accessibility Compliance: Ensuring UI components have proper accessibility labels, hints, and Dynamic Type support to meet inclusive design standards.
  • Architectural Refactoring: Reviewing view structures to prevent 'Massive Views' by suggesting component decomposition and ensuring business logic is properly decoupled into ViewModels.
  • Pre-merge Quality Check: Serving as an automated checklist before submitting Pull Requests to catch common SwiftUI-specific anti-patterns early in the development cycle.
nameswiftui-review
description"SwiftUIのベストプラクティスに基づくコードレビュー。パフォーマンス、アクセシビリティ、アーキテクチャをチェック。Use when: SwiftUI、View、レビュー、リファクタリング を依頼された時。"

SwiftUI コードレビュー

パフォーマンス

  • 不要な@Stateの使用がないか
  • @ObservedObjectの過剰な再描画がないか
  • List/ForEachにidが適切に設定されているか
  • 重い計算がbody内で行われていないか

アクセシビリティ

  • 画像に.accessibilityLabel()があるか
  • タップ可能な要素に.accessibilityHint()があるか
  • Dynamic Typeに対応しているか

アーキテクチャ

  • Viewが肥大化していないか(200行以上は分割検討)
  • ビジネスロジックがViewModelに分離されているか
  • PreviewProviderが適切に実装されているか