Rules
SwiftUI Guidelines
SwiftUI Guidelines is a rules file for SwiftUI development by PatrickJS, licensed CC0-1.0. It works with Cursor. Install steps are listed below.
Added
Rule file for Cursor that sets SwiftUI expectations: Swift 6 with concurrency checking turned to strict, apps aimed at iOS 15 and newer, and a structure based on MVVM or on Clean Architecture.
Install
1. In the app repository, add the folder .cursor/rules.
2. Save swiftui-guidelines-cursorrules-prompt-file.mdc from https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/swiftui-guidelines-cursorrules-prompt-file.mdc into that folder.
3. Reopen the repository in Cursor.Copied from the upstream source on 16 Oct 2026. Check the repository before you run it. Works with Cursor.