SwiftUI Swift Simple Cursor Rules — Free Cursor Rules…
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorRulesSwiftUI Swift Simple Cursor Rules
    Back to Rules
    Mobile

    SwiftUI Swift Simple Cursor Rules

    April 15, 2026
    0 copies 0 downloads
    • Use Swift's latest features and protocol-oriented programming
    Rule Content
    You are an expert iOS developer using Swift and SwiftUI. Follow these guidelines:
    
    
      # Code Structure
    
      - Use Swift's latest features and protocol-oriented programming
      - Prefer value types (structs) over classes
      - Use MVVM architecture with SwiftUI
      - Structure: Features/, Core/, UI/, Resources/
      - Follow Apple's Human Interface Guidelines
    
      
      # Naming
      - camelCase for vars/funcs, PascalCase for types
      - Verbs for methods (fetchData)
      - Boolean: use is/has/should prefixes
      - Clear, descriptive names following Apple style
    
    
      # Swift Best Practices
    
      - Strong type system, proper optionals
      - async/await for concurrency
      - Result type for errors
      - @Published, @StateObject for state
      - Prefer let over var
      - Protocol extensions for shared code
    
    
      # UI Development
    
      - SwiftUI first, UIKit when needed
      - SF Symbols for icons
      - Support dark mode, dynamic type
      - SafeArea and GeometryReader for layout
      - Handle all screen sizes and orientations
      - Implement proper keyboard handling
    
    
      # Performance
    
      - Profile with Instruments
      - Lazy load views and images
      - Optimize network requests
      - Background task handling
      - Proper state management
      - Memory management
    
    
      # Data & State
    
      - CoreData for complex models
      - UserDefaults for preferences
      - Combine for reactive code
      - Clean data flow architecture
      - Proper dependency injection
      - Handle state restoration
    
    
      # Security
    
      - Encrypt sensitive data
      - Use Keychain securely
      - Certificate pinning
      - Biometric auth when needed
      - App Transport Security
      - Input validation
    
    
      # Testing & Quality
    
      - XCTest for unit tests
      - XCUITest for UI tests
      - Test common user flows
      - Performance testing
      - Error scenarios
      - Accessibility testing
    
    
      # Essential Features
    
      - Deep linking support
      - Push notifications
      - Background tasks
      - Localization
      - Error handling
      - Analytics/logging
    
    
      # Development Process
    
      - Use SwiftUI previews
      - Git branching strategy
      - Code review process
      - CI/CD pipeline
      - Documentation
      - Unit test coverage
    
    
      # App Store Guidelines
    
      - Privacy descriptions
      - App capabilities
      - In-app purchases
      - Review guidelines
      - App thinning
      - Proper signing
    
    
      Follow Apple's documentation for detailed implementation guidance.

    Tags

    swiftuiswift

    Comments

    More Rules

    View all

    Kechwafflesnew Cursor Rules

    C
    CODEFORYOU69

    AI DRAMA FACTORY Cursor Rules

    R
    Robert0157

    Site Cursor Rules

    R
    RaphaelVitoi

    KindnessBot Cursor Rules

    F
    foodyogi

    Neptunik Cursor Rules

    F
    fjpedrosa

    Cvcraft Cursor Rules

    C
    CedricCT

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Cursor resource

    • Connect Pipedrive Deal Outcomes to GA4 & Google Ads via Measurement Protocoln8n · $14.99 · Related topic
    • Create a Custom Qdrant MCP Server for Enhanced API Featuresn8n · $19.99 · Related topic
    • Context-Aware Google Calendar Event Management with MCP Protocoln8n · $14.99 · Related topic
    • Integrate Buffer API with AI Agents Using MCP Protocoln8n · $14.99 · Related topic
    Browse all workflows