revidwerd

revidwerd

I spent most of the weekend in review (see the previous post with a link to the iOS app)

Day 6 of #100DaysOfSwiftUI was an ease into the idea of closures. Though my head was a bit achy at first, I faired pretty well on each sections quiz. In order to somewhat solidify, one always calls paramaters after the first { and you always call the closure that accepts a parameter without the parameter label.

let myAcceptingClosure = { (something: String) in 
    print("I'm a closure that accepts a parameter, such as \(something)...")
}

// We call this WITHOUT the label
myAcceptingClosure("This")