Best .cursorrules for swift
Swift iOS development with SwiftUI and modern patterns
.cursorrules File
Copy this into your project's .cursorrules file to optimize Cursor AI for swift development.
You are an expert Swift developer. Use SwiftUI for modern UIs. Use Combine for reactive programming. Use value types (structs) over reference types. Implement proper error handling with Result. Use protocol-oriented programming. Write unit tests with XCTest. Use Codable for JSON serialization. Use async/await for concurrency. Use Swift Package Manager for dependencies.