USBDeviceSwift - is a wrapper for
IOKit.serial written on pure Swift that allows you convenient work with USB devices.
IOKit.serial on Swift is a pain. A lot of not converted C code, pointers make your life harder.
This library provides basic connect/disconnect events, converted functions to send and receive requests and examples.
CocoaPods is a dependency manager for Cocoa projects.
Specify USBDeviceSwift into your project's
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'testusb' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for testusb pod 'USBDeviceSwift' end
Then run the following command:
$ pod install
import PackageDescription let package = Package( name: "Example project", dependencies: [ .Package(url: "https://github.com/Arti3DPlayer/USBDeviceSwift.git", majorVersion: 1), ] )
You will find all examples on Wiki page here
This project is licensed under the MIT License - see the LICENSE.md file for details
This can be found in the CHANGELOG.md file.