Re: Swift playground question

2014-10-08 Thread Barry Hadder
You can make minimum use of the storyboard, but you will want to use it at least initially. Best thing to do is to create a project from an app template and go from there. I recommend using them as much as possible though because they really do make a lot of things easier after you get the

Swift playground question

2014-10-07 Thread Venkatesh Potluri
Hi, I am running the GM build of Xcode. How can I get voiceOver to read the output after writing a line of code? I entered the following lines into the playground var x=4 x=x+4 I also tried opening the assistant editor. Thank you. Regards, Venkatesh Potluri -- You received this message because

Re: Swift playground question

2014-10-07 Thread Alex Hall
You must enable console output. I don't recall the command, but cmd-shift-c is coming to mind. Either way, it is in the View menu, if memory serves. Once enabled, stop interacting with the playground, and vo-right to the debug group (the last item in the Source Code Group). Interact with that

Re: Swift playground question

2014-10-07 Thread Barry Hadder
I have not found playgrounds to be usable with Voiceover. You can find the output sidebar with the mouse when you have say text under mouse turned on, but that isn't worth discussing at length. You can run the swift repl in terminal by typing: xcrun swift That will bring up lldb in swift repl

Re: Swift playground question

2014-10-07 Thread venky . 92
xcrun swift is perfect for me. I prefer the command line. Is there a possibility to run code from a file? Sent from my iPhone On 07-Oct-2014, at 8:36 pm, Barry Hadder bhad...@gmail.com wrote: I have not found playgrounds to be usable with Voiceover. You can find the output sidebar with

Re: Swift playground question

2014-10-07 Thread Barry Hadder
Yeah. You can just give xcrun swift your swift file as the parameter. You can also put #!/usr/bin/xcrun swift at the top of your swift file and make it executable. On Oct 7, 2014, at 12:05 PM, venky...@gmail.com wrote: xcrun swift is perfect for me. I prefer the command line. Is there a

Re: Swift playground question

2014-10-07 Thread venky . 92
Thanks! I also wanted to know if there is a possibility to create UIs using swift, by making minimum to no use of the storyboard. Sent from my iPhone On 07-Oct-2014, at 11:45 pm, Barry Hadder bhad...@gmail.com wrote: Yeah. You can just give xcrun swift your swift file as the parameter.