Swiftpack.co - elegantchaos/Hardware as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by elegantchaos.
elegantchaos/Hardware v1.0.1
Abstraction of various hardware interfaces and device properties on macOS/iOS/tvOS/watchOS.
⭐️ 1
🕓 3 weeks ago
.package(url: "https://github.com/elegantchaos/Hardware.git", from: "v1.0.1")

Test results Latest release swift 5.6 shield swift 5.7 shield Platforms: macOS, iOS, tvOS, Linux

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

Hardware

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.

GitHub

link
Stars: 1
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.0.1
2 years ago

Fixed visibility of various interfaces.

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