Documentation
README
Swift
Use this skill for Swift code that needs strong API boundaries, predictable threading, and idiomatic Apple-platform integration. When the code is part of a Nitro Module, pair this with build-nitro-modules for generated specs, Promise mapping, and HybridObject constraints.
Workflow
- Read the local Swift code, generated protocols, and surrounding API shape before editing.
- Choose the public type model first: make invalid states unrepresentable where Swift can express them.
- Choose one concurrency model for the feature before writing implementation code.
- Keep synchronous properties and methods cheap, local, and nonblocking.
- Make queue hops, hardware/session negotiation, I/O, and fallible async work explicit in the API.
This is the opening of the README. Read the full README on GitHub.