prompt logo

prompt

Free
FreeFree tier
Type
Open Source

About prompt

A specialized system prompt for AI assistants to perform comprehensive code reviews of SwiftUI projects. It enforces best practices for modern APIs, maintainability, performance, accessibility, and Apple's Human Interface Guidelines. The prompt includes a structured review process covering deprecated APIs, optimal view/modifier/animation usage, data flow, navigation, Dynamic Type, VoiceOver, Reduce Motion, and code hygiene. It targets iOS 26 and Swift 6.2 with modern concurrency, discourages UIKit and third-party frameworks unless requested, and recommends separating types into files organized by feature.

Key Features

Detects deprecated SwiftUI APIs and suggests modern alternatives
Validates view, modifier, and animation optimality
Ensures correct data flow configuration
Checks navigation for modern and performant implementations
Validates accessibility compliance including Dynamic Type, VoiceOver, and Reduce Motion
Enforces efficient code execution and runtime performance
Performs general Swift code correctness validation
Final code hygiene check for consistency and formatting
Supports partial reviews by loading only relevant sections
MIT licensed and open source

Pros & Cons

Pros
  • Comprehensive checklist covering both code quality and accessibility
  • Promotes modern Swift and SwiftUI idioms (Swift 6.2, iOS 26)
  • Open source and free to use under MIT license
  • Customizable for partial reviews or specific focus areas
  • Encourages consistent project structure and file organization
Cons
  • Requires an AI assistant capable of executing the prompt (not a standalone tool)
  • Opinionated towards specific conventions (e.g., no UIKit, no third-party frameworks without asking)
  • May need adaptation for projects with different deployment targets or Swift versions

Best For

Reviewing SwiftUI pull requests for best practicesAuditing existing SwiftUI codebases for maintainabilityLearning modern SwiftUI patterns and APIsEnsuring accessibility and HIG compliance in iOS appsOnboarding new SwiftUI developers to project conventions

FAQ

What is the purpose of this prompt?
To guide an AI assistant in conducting a thorough code review of SwiftUI projects, focusing on best practices, modern APIs, performance, and accessibility.
How should I use this prompt?
Use it when reading, writing, or reviewing SwiftUI projects. Provide the prompt to an AI assistant along with the code to be reviewed, and the assistant will follow the review process outlined.
What iOS and Swift versions does this prompt target?
It targets iOS 26 as the default deployment target and Swift 6.2 or later, using modern Swift concurrency.