ForceTouch in macOS

Here are some handy snippets when dealing with ForceTouch in macOS:

Event handler:

Normalize the pressure:


Originally published at gist.github.com.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.