Native iOS + Android (SwiftUI + Jetpack Compose, Shared Schema)
Rules for native apps per platform: SwiftUI with SwiftData on iOS, Jetpack Compose with Room on Android, one shared OpenAPI or protobuf schema with codegen, and real-device CI per platform.
- Formats
- 4 files
- AGENTS.md
- 40 lines
- CLAUDE.md
- 14 lines
- Languages
- Swift, Kotlin
- Updated
- Oct 2026
- Used by
- 1 project
Writes .claude/skills/swiftui-compose-native/SKILL.md
$ curl -s --create-dirs -o .claude/skills/swiftui-compose-native/SKILL.md https://stackitfast.com/rules/swiftui-compose-native/SKILL.mdRule files
Works with Cursor · Claude Code · Windsurf · AGY
Architecture notes
Architecture Overview
Guidelines for native apps on both platforms: SwiftUI and SwiftData on iOS, Jetpack Compose and Room on Android, and a single shared schema that generates the models and clients for both.
Key Advantages
- Each platform at its best: platform idioms, platform tooling and platform extensions without a cross-platform layer in the way.
- One contract: a model change starts in the schema and becomes a compile error on both platforms, which is the feedback loop an agent needs.
- Self-contained projects: an agent can read and change one platform without loading the other.
Frequently asked questions
When is fully native the right call over React Native or Expo?
When the product is the platform integration itself: widgets, watch and wear apps, health and sensor data, heavy background processing, or platform UI that has to feel exactly native. For a typical consumer or companion app, a shared TypeScript codebase is still faster for an agent to work in.
Why share only a schema instead of business logic (for example with Kotlin Multiplatform)?
A generated schema is the smallest shared surface that keeps both platforms honest, and each project stays readable in one sitting. Sharing logic through a bridge is worth it only when that logic is large and stable; it adds a third build system the agent has to understand.
Does this AGENTS.md work with Cursor, Claude Code and Windsurf?
Yes. AGENTS.md is the cross-tool standard read by Cursor, Claude Code, Windsurf, Codex and others. A .mdc file is included for Cursor's native rules format.