# SwiftUI

### Lecture Slides

{% file src="/files/6pLeucHt0ChbLlNvNyvR" %}
SwiftUI Part I
{% endfile %}

{% file src="/files/t8PRUUudmXRbJN1ISrdv" %}
SwiftUI Part II
{% endfile %}

### Lecture Video

{% embed url="<https://youtu.be/4lCu8VMXgqE>" %}
SwiftUI Part I (from FA23). The SP24 recording was accidentally destroyed.
{% endembed %}

{% embed url="<https://www.youtube.com/watch?t=1s&v=rpWCt3cL41k>" %}
Swift UI Part II (SP24)
{% endembed %}

### Lecture Demo

{% embed url="<https://github.com/intro-to-ios/lec10-swiftui-1>" %}
If you prefer to download the ZIP, go to Code > Download ZIP.
{% endembed %}

{% embed url="<https://github.com/intro-to-ios/lec11-swiftui-2.git>" %}
If you prefer to download the ZIP, go to Code > Download ZIP.
{% endembed %}

#### Clone the Repository

```sh
### Part I ###
git clone https://github.com/intro-to-ios/lec10-swiftui-1.git
OR git clone git@github.com:intro-to-ios/lec10-swiftui-1.git

### Part II ###
git clone https://github.com/intro-to-ios/lec11-swiftui-2.git
OR git clone git@github.com:intro-to-ios/lec11-swiftui-2.git
```

#### Checkout Branches

<pre class="language-sh"><code class="lang-sh">### Part I ###
<strong>git checkout origin/1-layouts
</strong>OR git checkout 1-layouts

git checkout origin/2-list
OR git checkout 2-list

git checkout origin/3-refactor
OR git checkout 3-refactor


### Part II ###
git checkout origin/1-navigation
OR git checkout 1-navigation

git checkout origin/2-button
OR git checkout 2-button

git checkout origin/3-textfield
OR git checkout 3-textfield
</code></pre>


---

# 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/sp24/lecture/swiftui.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.
