How to implement keywords associated function in swift?
<p><a href="https://i.stack.imgur.com/2UvKl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2UvKl.png" alt="enter image description here"></a></p>

<p>For example, when I input several letters, the corresponding words will show up automatically and then I can select them. But how to implement this kind of function? Which kind of UI element should I use ? Should I also input all countries in the world in cord data so that I can get the corresponding results ?</p>