How to read from keyboard in Swift 4.1.2?

58 Views Asked by At

This is not working

let input = readLine()
if let input = input {
    print(input) 
}

input is nil and I am using Xcode 9.1 at my Playground

0

There are 0 best solutions below