How to Bring Audio Visualizer Written in Swift to Run in BTT


I'm looking for some guidance on how to implement this script into the touch bar. This script is written in Swift with AudioKit which provides an audio visualizer. I would like to put this on the touch bar but I'm not entirely sure where to start with BTT.

I'm a bit in over my head with a bunch of stuff I don't know how to do. This works off of the AudioKit framework - so I'm not entirely sure how to incorporate that into BTT.

The code is currently connected to run through the view controller, so how do you target it to display on the touch bar?

Sorry if these are newbie questions, I'm not very familiar with swift & coding widgets for BTT. Thank you for the guidance!