HavenDevice

A Swift package that gathers device and app information into a single struct.

HavenDevice collects hardware specs, OS details, app metadata, battery status, screen size, and system resources through native APIs. Call HavenDevice.current() and get a single Codable struct back.


Features

One call

A single async function returns a full snapshot of the device and app state. More than 40 fields in one struct.

JSON ready

The struct conforms to Codable, so you can encode it straight to JSON for diagnostics or crash reports.

No dependencies

Built on Foundation and system frameworks only. Nothing else pulled in.

Platform-aware

Reads platform-specific data where available, such as battery level, dark mode status, and vendor identifiers.


Platforms

iOS 26+, macOS 26+, tvOS 26+, watchOS 26+, visionOS 26+


Licence

BSD 3-Clause