Day 6 Complete

2022-07-02 1 min read

Today I completed day 6 of the 100 Days of SwiftUI challenge.

Today I learned about the various types of loops available in Swift. It covers for loops and while loops.

For loops are iterator based for-in loops that allow you to range over a set of numbers or over a collection type of some kind. While loops come in two versions:

  1. while <condition> { <body> }
  2. repeat { <body> } while <condition>

Aside from the tests, which I found a little more challenging, there is checkpoint number 3 at the end of the days content, which challenges you to write a FizzBuzz.

I found the day interesting and challenging and a nice addition to my Swift learning.