UISearchBar detect when user stop type in swift
<p>Most of the example I found is in <code>Objective - C</code> which is very hard for me to understand can someone provide an example regarding this question in <code>Swift</code>. <a href="https://stackoverflow.com/questions/9642762/uisearchbar-detect-when-user-stop-type-and-dont-search-immediately-so-detect-pa">Here</a> is one solution but it is in <code>Objective C</code>.</p>