I can't figure out how to turn off the touch bar with swift and xcode.
I am developing a small macOS application and I would like to disable/turn off the touch bar when I click on a button.
Is it possible?
I can't figure out how to turn off the touch bar with swift and xcode.
I am developing a small macOS application and I would like to disable/turn off the touch bar when I click on a button.
Is it possible?
Hi @nrossat. Touch Bar is a per-app control. You can control what is displayed the App region when your app is in the foreground (including having no items), however the visibility of the Control Strip is controlled by the user, and not by your app.
Please see Touch Bar in the Apple Human Interface Guidelines, NSTouchBar for the API to control what your app displays in the Touch Bar, and Creating and Customizing the Touch Bar for sample code demonstrating the API.
—Jason.