08‐Olivia - molab-itp/content-2026-itp GitHub Wiki

Week 6

Reference the recorder demo to add a recording your own audio feature to the sleep sound app

Week 5

Reference the in class TimeDemo to add an time countdown feature for the audio playing (use the timer.publish and timeRemaining)

Week 4

Introducing SwiftUI

Time + Audio

DatePicker+ AVAudioPlayer

Week 3

Introducing SwiftUI

Aquarium - sea animals generations (random emoji, size, and location)

Week 2

Days 1 to 14 of 100 days of swiftui Day 8 - Day 14

Week 2 Playground: Try to create a abstract painting references to Kandinsky sytle mostly using geometric shapes

Week 1

Days 1 to 14 of 100 days of swiftui Day 1 - Day 7

Week 1 Playground:

issue 1: random I referenced this code from tutorial to create random in string

There is an error in my code

The solution is add ! to the end of random: let today = weather.randomElement()! The ! indecates that the array won't be empty, so it can give an actual value.

issue 2: String label

I referenced this code to create code but it showed the error of missing label.

There are two solutions: solution 1: add_before weather to indicate that don't need to write the parameter name when calling the function.

solution 2: write checkWeather(weather:today) instead of checkWeather(today). In this way it directly quotes the label name.