I am trying to keep the Touch Bar of my app active in the app controls part of the Touch Bar even when using a different app. How can I do this? I know this can be done because I have seen apps e.g. BetterTouchTool to do this.
For more information I am using Swift
Apple does not provide anything for this and apps such as BetterTouchTool use their own code to do this which would be quite complicated.