How do I delay a for loop in swift without interrupting the main thread?
问题 I am trying to read through a string one character a time delaying .1 seconds before moving on to the next character. I have tried implementing the delay function inside the for loop but it has two problems. 1. The delay is inconsistent and does not take the same amount of time when moving between characters. 2. It disrupts the main thread which I think is the cause of the camera view freezing. However, I think it is also possible that activating the flashlight while the camera is on freezes