# Project: Swift Basics

## Welcome&#x20;

Welcome to Cornell App Development’s iOS Course! The goal for this week’s project is simple: Swift will (hopefully) become your language of choice.&#x20;

## Playground&#x20;

This week’s project will be a playground that will guide you through basic Swift syntax. You can think of a playground as a mini-Xcode project. You can do many things on a Playground that can you do an Xcode project, like create views and classes, but it is more of a place to experiment than to build a full-blown project. Hence the name *playground*.&#x20;

To start this week’s project, download the Playground project below and fill in the questions. The Playground consists of 5 parts and each part has 0-4 sub-questions.&#x20;

Once you are finished, make sure to read the [cheat sheet](/resources/archived-past-semesters/sp23/cheat-sheets/submitting-your-projects.md) on how to submit your project. It has important guidelines on project submissions (e.g. name your playground “\_p1”).&#x20;

And most importantly, have fun!

{% file src="/files/s0DdORZwnF0qgnhbi6Vr" %}

When you open your assignment, if it does look all pretty like this:

![](/files/cFSEZIwqjW4KqzmzLTNp)

If this is not the case, select editor -> show rendered markup. If you only see "show raw markup", you don't need to do anything.

## Challenge Problems&#x20;

Part 6 of the homework is extra credit and thus entirely optional!

**Challenge**: Learn how to use enums to print welcoming strings. More detail in the Project1.playground file.

Hint: read up on Enums and Switches.

{% content-ref url="/pages/bIRcQcpORkPc8AfLMrOK" %}
[Enums and Switches](/resources/swift-foundations/enums-and-switches.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ios-course.cornellappdev.com/resources/archived-past-semesters/sp23/chapters/1.-intro-to-swift-and-xcode/project-swift-basics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
