There’s a thread, complete with an excellent example github by @alecrubin over here:
Definitely check it out if you’re interested in the topic.