AcademyRulesDevelopment

SwiftUI Guidelines

iOS development teams that want Cursor to follow a consistent SwiftUI architecture and code style.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/swiftui-guidelines-cursorrules-prompt-file.mdc -o .cursor/rules/swiftui-guidelines.mdc
swiftui-guidelines.mdc

Loading the file...

What it does

A rules file for the Cursor editor that guides the AI to write SwiftUI code as a senior iOS engineer would. It sets out architecture choices such as MVVM and Clean Architecture, SOLID principles, strict concurrency safety and performance habits like keeping views small.

Use cases

  1. 01Generate SwiftUI views split into small subviews
  2. 02Apply MVVM with coordinators to app navigation
  3. 03Keep new Swift code safe under strict concurrency

Questions about
SwiftUI Guidelines.

What is SwiftUI Guidelines used for?

iOS development teams that want Cursor to follow a consistent SwiftUI architecture and code style. A rules file for the Cursor editor that guides the AI to write SwiftUI code as a senior iOS engineer would. It sets out architecture choices such as MVVM and Clean Architecture, SOLID principles, strict concurrency safety and performance habits like keeping views small.

How do I install SwiftUI Guidelines?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/swiftui-guidelines-cursorrules-prompt-file.mdc -o .cursor/rules/swiftui-guidelines.mdc

Is SwiftUI Guidelines open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is SwiftUI Guidelines safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.