Skip to content

Latest commit

 

History

History
111 lines (88 loc) · 4.59 KB

File metadata and controls

111 lines (88 loc) · 4.59 KB

Prompt: iOS Mind Mapping Application Technical Architecture Design

Role/Expertise

You are an expert iOS/macOS systems architect with deep knowledge of Apple's ecosystem, including Swift, SwiftUI, UIKit, Core Graphics, CloudKit, and performance optimization for Apple Silicon. You have extensive experience designing large-scale, performance-critical applications that leverage Apple's native frameworks.

Context

Design a comprehensive technical architecture for a professional-grade mind mapping application that fully embraces Apple's ecosystem. The application must deliver desktop-class performance on mobile devices while maintaining the fluid, intuitive experience Apple users expect. This architecture will guide development of a product competing with established players like MindNode, iThoughts, and SimpleMind.

Requirements

  1. Performance Requirements

    • Render 10,000+ nodes at 60fps on ProMotion displays (120Hz capable)
    • Node creation/deletion latency < 100ms
    • Smooth pan/zoom with < 16ms frame time
    • Memory-efficient handling of large documents (< 500MB for 10K nodes)
  2. Core Features

    • Real-time collaborative editing via iCloud
    • Apple Pencil support with pressure, tilt, and low-latency drawing
    • Multi-touch gestures for navigation and manipulation
    • Rich media embedding (images, PDFs, audio notes, web links)
    • Automatic layout algorithms with manual override
    • Multiple visual themes and node styles
  3. Platform Requirements

    • Native support for iPhone, iPad, Mac (via Catalyst or native macOS)
    • Handoff and Continuity between devices
    • SharePlay for remote collaboration
    • Stage Manager and external display support
    • Accessibility compliance (VoiceOver, Dynamic Type)
  4. Integration Requirements

    • Siri and Shortcuts for voice-driven node creation
    • Widgets for quick access and document previews
    • Quick Note integration for capturing ideas
    • Focus Filters for productivity modes
    • Document-based app architecture with Files app integration

Constraints

  1. Technical Constraints

    • Must use Swift as primary language (Objective-C only for legacy interop)
    • Prioritize SwiftUI where performance allows, UIKit for critical paths
    • Apple-only dependencies except where no viable alternative exists
    • Target iOS/iPadOS 17.0+ to leverage latest APIs
    • Optimize for Apple Silicon (M1/M2) and Neural Engine where applicable
  2. Business Constraints

    • Single codebase for all Apple platforms where feasible
    • App Store distribution compliance
    • Premium pricing model compatible with in-app purchases
    • COPPA compliance for educational market
  3. Architecture Constraints

    • MVVM or MV pattern using SwiftUI/Combine
    • Protocol-oriented design for extensibility
    • Strict separation of rendering, business logic, and persistence layers

Deliverables

  1. Technology Stack Specification

    • Complete list of frameworks, libraries, and tools
    • Justification matrix for any non-Apple dependencies
    • Version requirements and compatibility matrix
  2. Architecture Blueprint

    • High-level system architecture diagram
    • Data flow and state management design
    • Rendering pipeline architecture
    • Sync and persistence strategy
  3. Implementation Roadmap

    • Core module breakdown and dependencies
    • Performance optimization strategies
    • Testing approach (unit, integration, performance)
    • CI/CD pipeline using Xcode Cloud
  4. Feature Implementation Guide

    • Detailed approach for each major feature
    • Platform-specific adaptations
    • Fallback strategies for older devices

Success Criteria

  1. Performance Metrics

    • Achieve 60fps scrolling/zooming with 10,000 visible nodes
    • < 2 second cold launch time
    • < 500ms document open time for 5,000 node documents
    • ProMotion adaptive refresh rate support (120Hz when interacting)
  2. Quality Metrics

    • 99.9% crash-free rate
    • App size < 50MB base install
    • Memory usage < 200MB for typical documents
    • Battery life impact < 10% during active use
  3. User Experience

    • Apple Design Award-worthy interface
    • Gesture recognition accuracy > 99%
    • Accessibility audit score > 95%
    • App Store rating > 4.5 stars

Examples

Reference implementations to consider:

  • Rendering: Study GoodNotes 5's canvas performance
  • Sync: Analyze Bear's CloudKit implementation
  • UI/UX: Review Apple's Freeform for inspiration
  • Architecture: Consider Craft's document model

Deliver a solution that would make Apple's developer relations team showcase this app as an exemplar of platform capabilities.