Call Swift code from an Apple TV TVML TVJS JavaScript App
<p>I have a basic TVML application set up. Currently simple events (such as a button press) are handled via JavaScript (TVJS).</p>

<p>When the user presses a button (provided via TVML template) I'd like some code to run in Swift instead, that manipulates UI elements.</p>

<p>What's the best way to do this?</p>