Swift console typing animation
So, I am new to swift, and I wanted a typing animation in the console for swift, and I tried to make one on my own, like this:
But for some reason the terminator didn't listen to the next line and wait the repeat. If I didn't use terminator, it worked great, but put each one one on a new line.
Can someone please help me make this work?
NOTE: I AM NOT USING XCODE
You forgot to flush the output. If you don't do that, swift won't print out the result like any other language.