Change code completion

- [Instructor] There's one more restriction…you might want to make when you are setting up a Playground…for educational documentation or presentation purposes.…Restricting the code completion bar.…I've restricted what you can type in the line editable code…by placing in the context that you can only type…a number or a string on the Order menu.…Close the Pizza Order…and go to the Menu Board Playground,…drop down to Desserts,…if you're not already there.…Tap in the end of the editable code block,…just after menuBoard prices, press Return.…

On the bottom you'll see a fully active code completion bar.…In most finished Playgrounds…when you are instructing or presenting…you'll want to restrict or hide completely…that completion bar.…Close the iPad Menu Board and go over to Xcode.…Open up the MenuBoard, Pizza,…go to the Dessert code.…We'll start restricting code completion…by removing all code completion.…Just after the end-hidden-code tag…add this code completion tag,…code-completion, and then parentheses,…everything, hide.…

Resume Transcript Auto-Scroll

Author

Released

7/21/2017

When Apple introduced Swift, they also introduced playgrounds, a way of prototyping and playing with Swift in Xcode without compiling to a simulator or device. Now there's the Swift Playgrounds app for the iPad, which extends their power to a mobile, interactive environment. Playgrounds are a versatile system for app development, whether you're prototyping ideas, documenting new frameworks, or learning to code. The possibilities are limited only by your imagination. In this course, Steven Lipton explores playgrounds for Xcode and for the iPad. Find out how to use these new ecosystems to quickly write code (even without a keyboard!), debug and test at lightning speed, create interactive presentations, and build courses to teach programming concepts in a fun and interactive way. Learn what you can do with these powerful tools for prototyping, documentation, and education.

Topics include:

Comparing iPad and Xcode playgrounds

Creating and testing Swift classes and code in iPad and Xcode playgrounds

Prototyping code

Debugging and testing with Quick Look live views

Using markup to interactively document code and create educational lessons