• Structs, part 2 How to limit access to internal data using access control In order to have a private variable/const inside of a struct, just use the private keyword. The point of the private keyword is to limit access to the variable inside of struct such that it can not be written to or read…

    ·

  • Structs, part 1 How to create your own structs A struct is a custom, complex data type complete with their own variables and functions. A struct when named is capitalized. All data types are capitalized. We can have values that change based on parameters. But if we create an Employee with a let, Swift will…

    ·

  • The task was to take an array of numbers and parse it Here’s my attempt, it works but I’m not sure its 100% correct I had a thought about passing in an array of function references to using then iterating over that array within doNumberStuff. Maybe I’ll try that at a later date. It was…

    ·

  • This one was all about closures How to create and use closures Passing function by reference Assign function directly to a variable How to write a closure. Note – we don’t use parameter names when calling a closure Scored 12/12 on Creating basic closuresScored 7/12 on Accepting Parameters in a closureScored 10/12 on Returning Values…

    ·

  • Why bother learning Swift/SwiftUI at this stage in the game? I’m a long time user of Apple products, probably since about 2009 or so. I still have the first Macbook Pro I ever bought. I also have the first Mac Mini i ever bought. Somehow, I managed to have around 5-6 mac books. Currently 4…

    ·