Is it possible to connect my headphones from swift code?

I'm just starting to learn Swift, and cannot find any documentation about connecting to not BLE devices. Is it possible?

It’s possible to connect to non-BLE devices in iOS with Swift using the External Accessory framework. However, to interact with the device and send/receive data requires detailed knowledge of the manufacturer’s device specifications - which are usually not available. For example, I wanted to connect to a blood pressure monitor via a Swift app, but the device required a sign-in process and the manufacturer refused to provide documentation - probably because their own app collected and stored user data on the company’s server.

good luck and regards, Michaela

Is it possible to connect my headphones from swift code?
 
 
Q