DEV Community

loading...

100 Days of SwiftUI — Day 5

Nathan Mattes
By day, I'm an iOS developer. By night, I'm a human being/programmer/blogger/podcaster. ¯\_(ツ)_/¯, (-‸ლ) (╯°□°)╯︵ ┻━┻
Originally published at zeitschlag.net on ・1 min read

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 :-)

Discussion (0)