Skip to main content

Swift Slowly: Day 25 - Hacking Swift 8

Today, is an exploration of structs. A lot of Swift seems to be built using structs. I wasn’t 100% awake when I was doing the computed properties section.

I tried mixing property observers and computed properties, and that does not seem to work.

You cannot compute and observe values at the same time

I understand it as the value cannot be both observed and computed at the same time.

I still enjoy the fact that the questions keep us on our toes. This means that basic things can still trip you up if you attempt to rush through them.

I do wish that I had 100 out of a 100, but I want to be honest with myself.

Update: I used the wrong screenshot and had to remove the second image.