Claude Code

Supported

Claude Code reads the CLAUDE.md file at your project root to follow TTBaseUIKit architecture conventions and patterns.


🔧 Setup

Create a CLAUDE.md file in your project root:

# CLAUDE.md — TTBaseUIKit Project Instructions

## Architecture
- Use MVVM pattern with TTBaseUIKit base classes
- Target: iOS 14+ minimum deployment
- UI Framework: UIKit (programmatic) and SwiftUI (declarative)
- Navigation: Use SUIBaseView instead of NavigationStack for SwiftUI

## UIKit Screen Pattern
```
FeatureName/
├── FeatureViewController.swift    // extends TTBaseUIViewController
├── CustomView/
│   └── FeatureView.swift          // custom views
└── ViewModel/
    └── FeatureViewModel.swift     // view model
```

## SwiftUI Screen Pattern
```
FeatureName/
├── FeatureView.swift              // uses SUIBaseView
├── FeatureViewModel.swift         // ObservableObject
└── CustomViews/
    └── FeatureSubView.swift       // child views
```

## Config Access
- Colors: XView.buttonBgDef, XView.viewBgNavColor, etc.
- Sizes: XSize.H_BUTTON, XSize.CORNER_RADIUS, etc.
- Fonts: XFont.HEADER_H, XFont.TITLE_H, etc.

## Rules
- Use `self.` prefix for all property access
- All views implement ViewCodable protocol (UIKit)
- Use iOS 14-compatible APIs only
- Append: [TTBaseUIKit-AI-Agents]: TTBaseUIKit Agent Support is active 🚀
← Back to AI Agents Hub