100 Days of SwiftUI – Day 5 – Functions

Variadic is a new term for me. The ability to pass many things into your function by using…

func square(numbers: Int…) {
for number in numbers {
print(“\(number) squared is \(number * number)”)
{
{

square(numbers: 1,2,3,4,5)

1 squared is 1
2 squared is 4
3 squared is 9
4 squared is 16
5 squared is 25

This is something I haven’t used before but I might in the future.

100 Days of SwiftUI – Day 3 – Operators and Conditions

If I post nothing else in the next 96 days, it will most certainly be a Swift update!

This is one of my favorite topics and one of the first reasons I fell in love with programming back in the 80s. I love logic statements and how you can create a program that can “reason” things out.

100 Days of SwiftUI – Day 2 – Arrays and other things

Complex data types and I are not friends but I muddled through the 2nd day.

I don’t use most of the data types that we went over nor can I see right now where I would use some of them in my day to day work.

That either means that I don’t really need them or that I really do need them but are too stupid to realize it.

100 Days of SwiftUI – Day 1 – Variables and other things

I am working through 100 Days of SwiftUI. I’ve been watching Paul Hudson videos for a while and he is a great teacher when it comes to Swift in general.

I highly recommend the FREE course if you are interested in programming in Swift.

Post my progress on here daily? Absolutely.

Topics covered…

Group: Simple Types

Variables
Strings and Integers
Multi-line strings
Doubles and Booleans
String interpolation
Constants
Type annotations

Tomorrow: Complex Types