DEV Community

Nathan Mattes
Nathan Mattes

Posted on • Originally published at zeitschlag.net on

1 1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay