Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialedgar rojas
1,246 Pointshow can I get inputs from user on Xcode playground??
I other program you can get the typed input of user to change your int or get the strings information. Can anyone help me to figure out how to get this information on swift playground. There has to be a way.... :)
1 Answer
Nathan Noye
4,370 PointsA playground is mostly for testing code. As far as I know - the only way to test user input is to either make it yourself (set a variable and then set it again to simulate user input) or make it as a console app (which is what I do 90% of the time when I need a simple app with user input)