Is it possible to read standard input in a swift playground?
E.g prompt user for their age within playground
Is it possible to read standard input in a swift playground?
E.g prompt user for their age within playground
There are workarounds for OS X. I have not been able to find any for iOS. For OS X, you can listen to external notifications (input in a support app), build in-playground windows with NSTextFields, or use Alerts to solicit user interaction.
Hi erica,
I just read this and I am very interested in your comments.
Can you help me with a little more direction as to what you mean by "Build in-playground windows with NSTextFields"? From my understanding you are referring to using NSTextField as an input / output mechanism for Swift code? But that would lose any code highlighting right?
Any help would be great thank you!