A modern iOS 18+ application built with Swift 6.1 and SwiftUI, featuring a glass morphism design system and Figma-to-code integration via Model Context Protocol (MCP).
This project includes comprehensive documentation for AI-assisted development:
- CLAUDE.md - Project architecture, coding guidelines, and SwiftUI patterns
- FIGMA_DESIGN_SYSTEM.md - Complete Figma-to-SwiftUI integration guide
- DESIGN_SYSTEM_QUICK_REFERENCE.md - Quick lookup for common patterns
- β Figma MCP Integration - Automated design-to-code workflow
- β
Type-Safe Design Tokens - Centralized design system in
DesignSystem.swift - β Glass Morphism UI - Native SwiftUI material effects
- β Component-Based Architecture - Reusable, composable UI components
- β Swift 6 Concurrency - Modern async/await patterns with strict concurrency checking
These rules files are starting points - feel free to:
- β Edit them to match your team's coding standards
- β Delete them if you prefer different approaches
- β Add your own rules for other AI tools
- β Update them as new iOS APIs become available
- No ViewModels: Embraces pure SwiftUI state management patterns
- Swift 6+ Concurrency: Enforces modern async/await over legacy patterns
- Latest APIs: Recommends iOS 18+ features with optional iOS 26 guidelines
- Testing First: Promotes Swift Testing framework over XCTest
- Performance Focus: Emphasizes @Observable over @Published for better performance
Note for AI assistants: You MUST read the relevant rules files before making changes to ensure consistency with project standards.
DevdayAAVN/
βββ DevdayAAVN.xcworkspace/ # Open this file in Xcode
βββ DevdayAAVN.xcodeproj/ # Xcode project
βββ Config/ # Build configuration
β βββ Shared.xcconfig # Common settings
β βββ Debug.xcconfig # Debug configuration
β βββ Release.xcconfig # Release configuration
β βββ DevdayAAVN.entitlements # App capabilities
βββ DevdayAAVN/ # Main app target
β βββ DevdayAAVNApp.swift # App entry point
β βββ ContentView.swift # Main screen
β βββ UIComponent/ # π UI Components
β β βββ DesignSystem.swift # Design tokens
β β βββ Hero/ # Hero section
β β βββ Search/ # Search components
β β βββ Cart/ # Cart components
β β βββ NavigationBar/ # Navigation
β β βββ NFTCard/ # NFT card components
β βββ Models/ # Data models
β β βββ NFTFeatured.swift
β βββ Resources/ # Assets & fonts
β βββ Assets.xcassets/ # Images & icons
β βββ Fonts/ # Custom fonts (Orbitron)
βββ Documentation/
βββ CLAUDE.md # Architecture guide
βββ FIGMA_DESIGN_SYSTEM.md # Figma integration
βββ DESIGN_SYSTEM_QUICK_REFERENCE.md
- No ViewModels: Pure SwiftUI state management with
@Stateand@Observable - Component Composition: Complex UIs built from smaller, reusable components
- Design Tokens: Centralized design system for consistency
- MCP Integration: Figma designs converted to SwiftUI via Model Context Protocol
- DesignSystem.swift: Type-safe tokens for spacing, colors, typography, etc.
- Component Folders: Each major UI section in its own folder with subcomponents
- Glass Morphism: Native
.ultraThinMaterialeffects throughout - Responsive Layouts:
GeometryReaderfor adaptive sizing
The project includes a comprehensive Makefile for all build operations:
# Show all available commands
make help
# Build the project
make build # Build in Debug mode
make build-release # Build in Release mode
make compile # Quick compile check
# Run tests
make test # Run all tests
make test-unit # Run unit tests only
make test-ui # Run UI tests only
# Clean & maintenance
make clean # Clean build artifacts
make clean-deep # Deep clean including derived data
make reset # Reset package dependencies
# Project information
make info # Show project details
make schemes # List available schemes
make devices # List available simulators- Open
DevdayAAVN.xcodeprojin Xcode - Select the
DevdayAAVNscheme - Choose a simulator or device
- Press β+B to build or β+R to run
This project uses Figma MCP (Model Context Protocol) for seamless design-to-code conversion.
-
Analyze Figma Design
mcp__figma-dev-mode-mcp-server__get_screenshot() mcp__figma-dev-mode-mcp-server__get_metadata({ nodeId: "..." }) mcp__figma-dev-mode-mcp-server__get_variable_defs()
-
Convert to SwiftUI
- Extract design tokens β Add to
DesignSystem.swift - Convert React/Tailwind β SwiftUI components
- Download images β Add to
Assets.xcassets
- Extract design tokens β Add to
-
Build Component
- Create data model in
Models/ - Build view in
UIComponent/ComponentName/ - Add SwiftUI preview
- Verify with
make build-debug
- Create data model in
π See FIGMA_DESIGN_SYSTEM.md for complete guide
Components are organized by feature in DevdayAAVN/UIComponent/, with each major feature having its own folder containing related subcomponents.
Types exposed to the app target need public access:
public struct NewView: View {
public init() {}
public var body: some View {
// Your view code
}
}Edit UIComponent/Package.swift to add SPM dependencies:
dependencies: [
.package(url: "https://github.com/example/SomePackage", from: "1.0.0")
],
targets: [
.target(
name: "UIComponent",
dependencies: ["SomePackage"]
),
]- Unit Tests:
UIComponent/Tests/UIComponentTests/(Swift Testing framework) - UI Tests:
DevdayAAVNUITests/(XCUITest framework) - Test Plan:
DevdayAAVN.xctestplancoordinates all tests
Build settings are managed through XCConfig files in Config/:
Config/Shared.xcconfig- Common settings (bundle ID, versions, deployment target)Config/Debug.xcconfig- Debug-specific settingsConfig/Release.xcconfig- Release-specific settingsConfig/Tests.xcconfig- Test-specific settings
App capabilities are managed through a declarative entitlements file:
Config/DevdayAAVN.entitlements- All app entitlements and capabilities- AI agents can safely edit this XML file to add HealthKit, CloudKit, Push Notifications, etc.
- No need to modify complex Xcode project files
- App-Level Assets:
DevdayAAVN/Assets.xcassets/(app icon, accent color) - Feature Assets: Add
Resources/folder to SPM package if needed
To include assets in your feature package:
.target(
name: "UIComponent",
dependencies: [],
resources: [.process("Resources")]
)This project was scaffolded using XcodeBuildMCP, which provides tools for AI-assisted iOS development workflows.