Wait for a function swift. How could I make my code wait until the task in...