dat-conventions
Installation
SKILL.md
DAT SDK Conventions (iOS)
Architecture
The public SDK is organized into these modules:
- MWDATCore: Device discovery, registration, permissions, device selectors,
DeviceSession - MWDATCamera:
Camera,Stream,VideoFrame, photo capture - MWDATDisplay: Display capability, display UI components, icons, images, buttons, video
- MWDATMockDevice: MockDeviceKit for testing without hardware
- MWDATMockDeviceTestClient:
MockDeviceTestClientfor driving MockDeviceKit over HTTP from a UI-test process
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