E-Book, Englisch, 196 Seiten
Feiler Exploring Swift Playgrounds
1. ed
ISBN: 978-1-4842-2647-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
The Fastest and Most Effective Way to Learn to Code and to Teach Others to Use Your Code
E-Book, Englisch, 196 Seiten
ISBN: 978-1-4842-2647-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
- Build Swift playgrounds for others to use
- Teach yourself and others with Swift playgrounds
- Use Swift playgrounds in your development process
Who This Book Is For:
Jesse Feiler is a developer, consultant, and author specializing in database technologies and location-based apps. He is the creator of Minutes Machine the meeting management app, as well as Saranac River Trail app a guide to the Trail that includes location-based updates as well as social media tools. His apps are available in the App Store and are published by Champlain Arts Corp (champlainarts.com). Jesse is heard regularly on WAMC Public Radio for the Northeast's The Roundtable. founder of Friends of Saranac River Trail, Inc. A native of Washington DC, he has lived in New York City and currently lives in Plattsburgh NY.
Autoren/Hrsg.
Weitere Infos & Material
1;Contents at a Glance;4
2;Contents;5
3;About the Author;9
4;About the Technical Reviewer;10
5;Introduction;11
6;Chapter 1: Introducing Swift Playgrounds;12
6.1;Developer Overview;12
6.2;Xcode;13
6.2.1;Building the Single View Application in Xcode;13
6.2.2;Exploring the Single View Application;16
6.2.3;Looking into the Frameworks;18
6.3;Swift Playgrounds;18
6.3.1;Building the Classic Hello World App;18
6.3.2;Building a Hello Playground;19
6.4;Setting Fonts in Xcode;21
6.5;Summary;22
7;Chapter 2: Creating a Simple Swift Playground on Xcode;23
7.1;Getting Started with a Playground, Code, and Results;23
7.1.1;Setting Up the Playground;24
7.1.2;Watching Variables and Using Code Completion;25
7.2;Running the Playground;30
7.3;Dealing with Errors;30
7.3.1;Handling Syntax Errors;30
7.3.2;Handling Contextual Errors;32
7.4;Summary;35
8;Chapter 3: Looking at Swift Basics for Playgrounds;36
8.1;Comments and Markup;36
8.2;Globals and Objects;39
8.3;Classes, Enumerations, and Structures;40
8.4;Types in Swift;41
8.5;Properties;42
8.5.1;Constants and Variables;43
8.5.2;Lazy Initialization;43
8.5.3;Optional Properties;43
8.6;Summary;48
9;Chapter 4: Editing Playgrounds on macOS;49
9.1;Exploring the Two Playground Environments;49
9.2;Creating a Playground with Xcode on macOS;50
9.3;Turning a Static Playground into an Interactive Playground;51
9.4;Moving a Playground from Xcode/Mac to Playgrounds/iPad;54
9.5;Managing Interaction in a Playground;59
9.5.1;Creating and Using an Editable Area;60
9.6;Summary;71
10;Chapter 5: Editing Playgrounds on iOS;72
10.1;The Playgrounds App User Interface and Experience;72
10.2;Using the Shortcut Bar;76
10.2.1;Inserting a Simple Line of Code;76
10.2.2;Inserting More Complex Syntax;77
10.2.3;Choosing a Color;81
10.2.4;Choosing an Image;81
10.3;Putting the Pieces Together: Writing a Class in a Playground with the Shortcut Bar;84
10.3.1;Typing the Code;84
10.3.2;Using the Shortcut Bar to Write the Code;86
10.3.2.1;Creating an Empty Playground;86
10.3.2.2;Show the Keyboard and Handle the Red Dot;88
10.3.2.3;Complete the Class Definition;90
10.4;Summary;96
11;Chapter 6: Entering Data and Viewing Results in Swift Playgrounds;97
11.1;Using the Timeline;98
11.2;Creating a Basic Playground with a View;102
11.2.1;Looking at Your View in the Timeline;103
11.2.2;Add a Second View to the Live View;104
11.3;Working with Interactive Data Entry;107
11.3.1;Creating a New Playground;108
11.3.2;Creating a View Controller for the Live View;108
11.3.3;Creating the View Controller Views;109
11.3.3.1;Creating the Main View Subview;110
11.3.3.2;Creating the Text Field Subview;111
11.3.3.3;Creating the Label Subview;112
11.3.3.4;Assembling the View Controller;112
11.3.3.5;Managing Text Fields;112
11.3.3.6;Updating the Text;113
11.3.3.7;Finishing Up the View Controller;113
11.3.3.8;Trying Out the Playground;114
11.3.3.9;Exploring the Playground;115
11.4;Summary;118
12;Chapter 7: Adding Resources and Source Code to Playgrounds;119
12.1;Looking Inside a Playground;119
12.1.1;Exploring a Playground in the Finder (macOS);121
12.1.1.1;Contents.swift;124
12.1.1.2;contents.xcplayground;125
12.1.1.3;playground.workspace;125
12.1.2;Exploring a Playground in Playgrounds (iOS);126
12.2;Adding Resources to a Playground;130
12.3;Adding Code to a Playground;137
12.4;Summary;147
13;Chapter 8: Using Touch Gestures in Interactive Playgrounds;148
13.1;Understanding Gestures Using Playgrounds;149
13.1.1;Creating a Basic Gesture Playground in Xcode on macOS;149
13.1.1.1;Creating a Playground with Live View;149
13.1.1.2;Create a GestureView Class;150
13.1.1.3;Creating an Instance of GestureView;153
13.1.1.4;Adding a Gesture to GestureView;154
13.1.1.5;Adding Another GestureView;155
13.1.1.6;Finishing Up;156
13.1.2;Creating a Basic Gesture Playground in Playgrounds on iPad;158
13.2;Working with Gestures in a Playground;164
13.3;Summary;171
14;Chapter 9: Building a Complex Playground;172
14.1;Collecting Your Playground Pages and Creating the MultiPlayground;172
14.2;Assembling Playground Pages for Basic Navigation;177
14.3;Using Basic Link Navigation;179
14.4;Enhancing Navigation;186
14.4.1;Changing Link and File Names;186
14.4.2;Adding a Constant Link (Home);188
14.4.3;Using a Basic File for All Pages;189
14.5;Making Further Enhancements;191
14.6;Summary;192
15;Index;193




