Swift String Input in OS X (updated)

Опубликовано: 28 Март 2026
на канале: solron75
4,652
24

Swift String Input.

This was done with Xcode 7.3.1 (and tested with Xcode 8)

This is an update of my old video at    • Xcode Swift: string input in swift  

You can also get the written code at http://soltveit.org/swift-string-inpu...


Swift string input has become a lot easier than since I posted an article about it. In my previous article Swift string input required you to create your own function to read a input line. Then one viewer commented on my YouTube video a different method for Linux users. His method had a readLine function. When I tested this with Xcode in OS X it worked just fine. And I'm almost sure it wasn't that easy about a year ago.


Enjoy the code!