:memo: Add docs tip about testing Touch Bar usage
authorSindre Sorhus <sindresorhus@gmail.com>
Mon, 17 Apr 2017 07:37:05 +0000 (14:37 +0700)
committerSindre Sorhus <sindresorhus@gmail.com>
Mon, 17 Apr 2017 07:39:37 +0000 (14:39 +0700)
Disclosure: I made it.

Most devs don't have the new MacBook with Touch Bar, but would like to support it. I think it would be useful to point out how to easily develop and test Touch Bar usage in Electron apps.

[ci skip]

docs/api/touch-bar.md

index 7ac578da46dbe31cfcd071760f139c074fec95a8..0a0827a2b2fa5a3e4a34f128d57aaf75673b9427 100644 (file)
@@ -16,6 +16,10 @@ Creates a new touch bar with the specified items. Use
 **Note:** The TouchBar API is currently experimental and may change or be
 removed in future Electron releases.
 
+**Tip:** If you don't have a MacBook with Touch Bar, you can use
+[Touch Bar Simulator](https://github.com/sindresorhus/touch-bar-simulator)
+to test Touch Bar usage in your app.
+
 ### Instance Properties
 
 The following properties are available on instances of `TouchBar`: