didSelectItemAt not being called
<p>I have my collection view ready to go and I'm trying to do <code>didSelectItemAt</code> to segue to the detail view. But I just want to test out logging each of the items and it's not logging. </p>

<p>I set all the delegates already:</p>

<p>*</p>

<pre><code>class ViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UISearchBarDelegate {*

    @IBOutlet weak var activityIndicatorView: UIActivityIndicatorView!
    @IBOutlet weak var searchBar: UISearchBar!
    @IBOutlet weak var collection: UICollectionView!

    override func viewDidLoad() {
        super.viewDidLoad()
        collection.dataSource = self
        collection.delegate = self
        searchBar.delegate = self

        activityIndicatorView.isHidden = true


        let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: "dismissKeyboard")
        view.addGestureRecognizer(tap)
    }
</code></pre>

<p>*</p>

<p>What am I doing wrong?</p>

<pre><code>func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
    let movie : Movie

    movie = MOVIE_ARRAY[indexPath.row]
    print(movie.plot)
}
</code></pre>

<p><a href="https://i.stack.imgur.com/RFKxQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RFKxQ.png" alt="enter image description here"></a></p>