> 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/resources/archived-past-semesters/sp26/week-4-or-swiftui/monday-or-swiftui-i.md).

# Monday | SwiftUI I

Spring 2026

<details>

<summary>SwiftUI I Follow-Along</summary>

## Using git in Terminal

#### 1. Clone the Repository

```sh
git clone https://github.com/intro-to-ios/lec6-swiftui-1.git
```

#### 2. 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/lec10-swiftui-1>
   2. Press the button that says main (this will show all the branches in this repo)
   3. Choose the branch `1-layouts`&#x20;
   4. Repeat step c for demo 2, 3
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 1-layouts`&#x20;
   3. Now your should have the solution code for demo 1
   4. Same thing for demo 2, 3

</details>

### Lecture Slides

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

### Spring 2026 Lecture Video

Coming soon..

***

<details>

<summary>Apple documentation on Topic</summary>

{% embed url="<https://developer.apple.com/documentation/swift/choosing-between-structures-and-classes>" %}
Struct vs Classes
{% endembed %}

{% embed url="<https://developer.apple.com/documentation/swiftui/building-layouts-with-stack-views>" %}
Layouts
{% endembed %}

{% embed url="<https://developer.apple.com/documentation/swiftui/viewmodifier>" %}
View Modifiers
{% endembed %}

</details>
