dat-conventions
Installation
SKILL.md
DAT SDK Conventions (iOS)
Architecture
The SDK is organized into four modules:
- MWDATCore: Device discovery, registration, permissions, device selectors
- MWDATCamera: Stream, VideoFrame, photo capture
- MWDATDisplay: Display capability, display UI components, icons, images, buttons, video
- MWDATMockDevice: MockDeviceKit for testing without hardware
Swift Patterns
- Use
async/awaitfor all SDK operations — the SDK is fully async - Use
AsyncSequence/ publisher.listen {}for observing streams - Annotate UI-updating code with
@MainActor - Never block the main thread with frame processing
- Handle errors with do/catch — the SDK throws typed errors