SwiftUI· Rules
SwiftUI Guidelines
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.
- Author
- PatrickJS
- Added
- 16 Oct 2026
- Works with
- Cursor
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.
Source
swiftui · cursor-rules