mickeyl / LTSupportAutomotive

An iOS / watchOS / macOS support library for OBD2, VIN-Decoding, and more.
MIT License
212 stars 59 forks source link

Swift support for LTSupportAutomotive 1.1 #33

Open mickeyl opened 3 years ago

mickeyl commented 3 years ago

This issue keeps track about the forthcoming Swift support for LTSupportAutomotive. I'm planning to:

After that we can tag and release 1.1. NB: I don't plan rewriting this library in Swift any time soon. However I want to make the call sites as swifty as possible.

jasonthenderson commented 1 year ago

I would love it if you could do this, I couldn't find any examples of Swift calling LTSSupportAutomotive...but would definitely use it if I could figure out how to do it.

mickeyl commented 1 year ago

The first bits of that have landed in the SPM branch. I have feedback from people using this from Swift. I should perhaps rebase it on master and make it the default branch.

jasonthenderson commented 1 year ago

It would be great to have a simple sample of how to use the library from Swift @mickeyl - I looked at the spm branch but didn’t see this. Ie just a ‘to be done’ note.

As far as I’ve been able to find (with a lot of searching) there is no library for ble access to obd2 written in swift available. I would wrap your lib myself if I could but my obj-c skills are non-existent and am working on learning swift as I go on this project.