© Wallace Wang 2018
Wallace WangBeginning ARKit for iPhone and iPadhttps://doi.org/10.1007/978-1-4842-4102-8_8

8. Drawing on the Screen

Wallace Wang1 
San Diego, CA, USA

You’ve already seen how you can draw common geometric shapes in augmented reality such as cylinders, boxes, pyramids, and spheres. You’ve also seen how you can draw custom geometric shapes by defining starting and end points. Creating and displaying virtual objects on the screen typically occurs in code.

However, what if you want to give the user the choice of drawing items on the screen? That’s what you’ll learn in this chapter: how to let the user draw lines directly on an augmented reality view.

First, let’s explain another debugging feature that you’ve been using all this time: ...

Get Beginning ARKit for iPhone and iPad: Augmented Reality App Development for iOS now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.