> For the complete documentation index, see [llms.txt](https://ios-course.cornellappdev.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ios-course.cornellappdev.com/course-content/lectures/l10-mvvm.md).

# L10: MVVM

Fall 2026

<details>

<summary>MVVM Follow-Along</summary>

## Using git in Terminal

#### 1. Clone the Repository

{% hint style="info" %}
We will be adding onto the last demo from lecture 9
{% endhint %}

<pre class="language-sh"><code class="lang-sh"><strong>git clone https://github.com/intro-to-ios/networking-II-demo
</strong></code></pre>

#### 2. Checkout to correct branch

<pre class="language-sh"><code class="lang-sh"><strong>git checkout post-requests
</strong></code></pre>

#### 3. Follow Along!

</details>

<details>

<summary>How to access the solution code</summary>

You have two options:

1. Through the GitHub website
   1. Go to <https://github.com/intro-to-ios/networking-II-demo>
   2. Press the button that says main (this will show all the branches in this repo)
   3. Choose the branch you want!
2. Through the terminal
   1. restore your changes or stach them
      1. `git restore .` or `git stash push`
   2. Checkout to the solution branch
      1. `git checkout <branch-name>`&#x20;
   3. Now your should have the solution code

</details>

## Lecture slides

{% embed url="<https://docs.google.com/presentation/d/1kK3tGm7LUIApaleTNtJIiqMwqKxYRJoymlzvYekh6ao/edit?usp=sharing>" %}

{% hint style="info" %}
Read more about [Enums & Switches](https://ios-course.cornellappdev.com/resources/swift-foundations/enums-and-switches.md)
{% endhint %}

### Fall 2025 Lecture Video

{% embed url="<https://youtu.be/HEBnp3YlOGQ?si=2vJi43Zqbc4QRuAl>" %}
