<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Bee,</div><div class=""><br class=""></div><div class=""><a href="http://swift.org" class="">Swift.org</a> downloadable toolchains don't work with Xcode Playgrounds; Playgrounds use the copy of Swift that ships with Xcode. Any questions you have about Playground usage are best asked at&nbsp;<a href="https://devforums.apple.com/community/tools/xcode/playgrounds" class="">https://devforums.apple.com/community/tools/xcode/playgrounds</a>.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>- Rick</div><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 7, 2015, at 12:41 AM, Bee via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi all,<div class=""><br class=""></div><div class="">I'd like to read keyboard input from playground console. Swift doc gives me readLine function. I tried it on Playground but it didn't accept any input I entered from the keyboard. Screenshot attached.</div><div class=""><br class=""></div><div class="">The code:</div><div class="">// — start code —</div><div class=""><div class="">var name: String</div><div class="">print("What's your name? ", terminator: "")</div><div class="">name = readLine(stripNewline: true)!</div><div class="">print("Hello, \(name)... good to see you!")</div></div><div class="">// — end code —&nbsp;</div><div class=""><br class=""></div><div class="">Tried it on:</div><div class="">- Macbook Pro with OS X El Capitan</div><div class="">- XCode 7 with Swift 2</div><div class=""><br class=""></div><div class="">Any help please? Thank you.<br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class="">-Bee-<br class=""><br class=""></div></div></div>
</div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=qz0eNO-2BnIaKwfHdqdSEoWDzK1gYoMlfMcRDuURe6g4njKvYcRlK6OCztp2op-2FamHglmLJCI48vvUQF-2BBULQXIrtkyvrsvxtPZR3TbN94x019RxPqZXQD6rWEd0ktaCtxdDgLxV-2B0cdrzFhhfAwSXXyToPY5fpDif-2BGwRGKhYkM3-2FCxo8BIQ39qt9cTycF3tqCLhnelnCtgbPiMvrza1qgz-2BZXnpFt6rz32ScGGWD4hI-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
<span id="cid:5B5DD4DE-1E00-404B-9DCA-2961C0AC0CD4@apple.com">&lt;playground console input.png&gt;</span>_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>