iOS SwiftUI example/help?

Hi all, new developer here, excited to add support for Ruuvi tags to my app, but I’m struggling.

I’ve successfully added the BTKit repository to my app, but am not sure what to do next. I only found one other thread referencing SwiftUI (BTKit 0.5 on iOS and SwiftUI), but it was a bit cryptic for me and assumed knowledge I evidently don’t have.

Any way to get a quick, but fully working example for just listening to tag broadcasts or connecting to a specific tag?

Any help would be greatly appreciated, thank you!

Hi! Welcome and thanks for your interest!

Please kindly check Documentation.

If you have any questions - please feel free to ask here.

Thank you Rinat, that was very helpful!

I am able to read the tag broadcasts in my app having gone through the tutorial linked by @Rinat . However, according to the Ruuvi Station iOS app, “Alerts are not available over Bluetooth connection if background scanning is not enabled.” That app allows you to “Pair and use background scan” to do this, but is there any example code for implementing this functionality? A tutorial like the one for reading broadcasts would be great, but anything to get me started would be appreciated!

1 Like