title: How to pass a closure as action to tap gesture added to a UIView?
body: <p>I want a on click function on a UIView, but I don't know how can I pass in that closure in the first picture in the function:</p>
  
  <p><a href="https://i.stack.imgur.com/6hwZT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6hwZT.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/LvHwd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LvHwd.png" alt="enter image description here"></a></p>