Is There Documentation for Creating Custom Widgets?


I have an idea for a custom BTT widget and I was wondering if there was documentation that has the requirements/how to make it compatible with BTT. The code I am using is written in swift 5.

I looked through the documentation but I must have missed it. I didn't see anything in regards to displaying the output of swift code to the touch bar.

Thanks for the help!