This SwiftUI
app is designed to detect any connected USB devices matching
a given Vendor ID
and Product ID
and display their corresponding details in an organized table view.
Once the app is launched and detects a matching USB device (already connected before starting app and/or during runtime), it will automatically retrieve and display the device's name, unique identification number, product identification number, and vendor identification number.
These details will be displayed in a clean and easy-to-read table format, making it simple for users to quickly identify and keep track of all connected USB devices. With its intuitive design and efficient functionality, this app is an excellent tool for anyone who needs to manage multiple USB devices simultaneously.
A SwiftUI app that detects connected USB devices and displays the device name, ID, product ID, and vendor ID in a table. The app uses the USBMonitorService class to monitor USB events.
- Xcode 14.3 or later
- Swift 5.8 or later
- Device used for test
- Clone the repository:
git clone https://github.com/yourusername/USBDeviceChecker.git
- Open USBDeviceChecker.xcodeproj in Xcode.
- Build and run the app.
When you launch the app, it will start monitoring USB devices. If a device that matches the vendor ID and product ID specified in USBMonitorService is connected or disconnected, the app will display the device name, ID, product ID, and vendor ID in a table.
To stop monitoring USB devices, tap the "Stop" button in the top right corner of the app.
This app is released under the MIT License. See LICENSE for details.
This app uses the IOKit and IOKit.usb frameworks to monitor USB events.