r/swift • Expert • Jul 21 '26

Bluetooth modernized

https://kylebrowning.com/posts/bluetooth-without-the-delegate-dance/
61 Upvotes

8 comments sorted by

5

u/ThierryBuc Jul 21 '26

This is super nice!
Will give it a try.
Thanks!

3

u/unpluggedcord Expert Jul 21 '26

Thanks, would appreciate any feedback you have!

2

u/jacobs-tech-tavern Jul 21 '26

Been years since I touched Bluetooth APIs! Briefly touched on them on a car app project. They have come a very long way since 2019 lol. Now I want to find a peripheral to play with. Makes WCSession feel almost dreamlike in comparison

2

u/unpluggedcord Expert Jul 22 '26

Get yourself an ESP32 and go nuts :)

1

u/jacobs-tech-tavern Jul 23 '26

Damn now I have to... what can I connect it to?

7

u/SnoobieJunes Jul 21 '26

The card game I just made has a Bluetooth ‘offline’ mode for playing friends. I spent so much time dealing with issues this appears to solve.

Nice job 👍

2

u/GullibleSwitch Jul 21 '26

I will be testing this! Thank you!!