Introduction
You already understand how to use typical data types such as Int, Double, String, and Bool.
You have already built βΒ or will build soon β applications that accept user input in these ways:
- As an
Intvia the Stepper structure - As a
Doublevia the Slider structure.
Steppers and sliders prevent the user from providing invalid input.
This is very helpful, however, in the case of:
- a Slider β it can be hard to select a precise value.
- a Stepper β it can be slow to input a large number.
Sometimes, it would be preferable to accept βfree formβ or typed input from the user.
What happens, though, when invalid input is received from a user?
For example, our app might expect numeric input βΒ but the user could type fifty rather than 50.
This is when the notion of an optional data type becomes useful.
Getting started
Please download a ZIP file of this project:

Double-click to expand the ZIP file in your Downloads folder:

Move the new folder to your Computer Studies folder:

Double-click to open the folder:

Double-click the blue .xcodeproj file:

You will see the following dialog β choose Trust and Open:

You will see the opening page of the playground. Read the introduction carefully. When you ready, tap the blue link at the bottom of the page to advance:

Try each page of the playground by following instructions given, while taking notes in your black paper notebook.
Take your time β read for understanding β write down your responses to the questions posed in your black book.
When you are done β summarize in writing what you have learned in your Notion post for today β as well as any questions you have.
IMPORTANT
Be sure to include several screenshots showing your progress as you completed the playground.