title: Unable to add target and run function on UIBarButtonItem click in iOS Swift 3
body: <p>I'm unable to detect on-click events on <code>UIBarButtonItems</code> in <code>Swift 3</code>. Can anyone help?. I need to perform a <code>segue</code> to another storyboard and <code>view controller</code> on clicking the <code>UIBarButtonItem</code>.</p>