DEV Community

Nathan Mattes
Nathan Mattes

Posted on • Originally published at zeitschlag.net on

100 Days of SwiftUI — Day 5

Today's lessons of Paul Hudson's 100 Days of SwiftUI were about functions. What was actually pretty new to me was that Swift supports variadic functions — I'm not sure what they should be good for. And I got reminded about the existence of the inout-keyword. Usually, parameters are passed as constants into functions. Marking them with inout enables me to change those parameteres from inside a functions. But: They have to be variables, so no let in this case.

I really like the short lessons. Today was the first day I attended the course on a workday and I made it. I'm a bit proud of me :-)

Top comments (0)