© Jesse Feiler 2017

Jesse Feiler, Exploring Swift Playgrounds, 10.1007/978-1-4842-2647-6_8

8. Using Touch Gestures in Interactive Playgrounds

Jesse Feiler

(1)Plattsburgh, New York, USA

Chapter 6 explores interactivity in playgrounds for two major areas:

  • Working with a playground live view and views that respond to device rotation

  • Creating and using data entry fields

This chapter explores yet another aspect of interactive views: creating and using gesture recognizers so you can create playgrounds with objects that users can directly manipulate.

All of these examples use views inside a playground live view. In Cocoa and Cocoa Touch, views are not just displays of data—they also respond to events such as device rotation, along with touches in subclasses ...

Get Exploring Swift Playgrounds: The Fastest and Most Effective Way to Learn to Code and to Teach Others to Use Your Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.