title: How to make a tap-blocking overlay in nativescript?
body: <p>I am creating a custom dialog popup, overlay is fine, except that my taps go through it. Is there a way to make a layout tap-blocking? Like a button does. Can't really listen for all gestures and manually control them, that means I would have to block them on all other layouts that are in the taps way. Don't want to use custom dialog function, because <code>TIP: By design on iPhone, a modal page appears only in full screen</code> and I want to minimize the differences between android and ios.</p>
  
  <p>Sample code:</p>
  
  <pre><code>    &lt;AbsoluteLayout&gt;
  
          &lt;StackLayout class="content-wrapper"&gt;
              &lt;router-outlet&gt;&lt;/router-outlet&gt;
          &lt;/StackLayout&gt;
  
          &lt;StackLayout class="custom-dialog"&gt;
              &lt;Label text="Loading..." textWrap="true"&gt;&lt;/Label&gt;
          &lt;/StackLayout&gt;
  
      &lt;/AbsoluteLayout&gt;
  </code></pre>