Swiftpack.co -  Package - elegantchaos/Hardware
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Abstraction of various hardware interfaces and device properties on macOS/iOS/tvOS/watchOS.
.package(url: "https://github.com/elegantchaos/Hardware.git", from: "v1.0.1")

Test results Latest release swift 5.0 shield swift 5.1 shield swift 5.2 shield swift 5.3 shield swift dev shield Platforms: macOS, iOS, tvOS, watchOS, Linux


Some hardware related utilities.

You can use Device.main to interrogate various properties of the machine that you're running on.

In particular, you can obtain a unique identifier. This is based on the ethernet MAC address (on macOS), or the identifierForVendor value (on iOS).

Also contains some IOKit-related wrappers.


Stars: 1
Last commit: 4 weeks ago

Release Notes

40 weeks ago

Fixed visibility of various interfaces.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco