Posts

Showing posts with the label completion handler

Angela Yu Xcode 12 Course - Part 21 (lectures 193 to 197)

Image
Yes, so I have found some sort of rhythm, hence another entry today! Just continue from where we got to.... *Ended up continuing from 4th April instead! Start Time - 17:09 Swift Closures (advanced Swift!) My understanding of these is that they are like functions without a specific name. So they can be shorter/easier etc. I tried conceptualising them before with Bob's course but it was at that point that I gave up on them! Function - bread analogy. An input with a machine that cuts up the bread, then an output (sliced bread!). Three variations on functions - 1.Those that do something without any input/parameters or have an output 2. Those that take an input with no specific output 3. Those that take an input and give an output So closures are a step beyond that! Simple function - with input, output and something that happens. Then an adding one, which we're going to use into the original function... Here's how it now looks -   Ahh so I can pa...

Bob Lee Course Part 18 (lectures 30 to 32)

Image
So a few things happening when working on, and successfully completing my first own app. I got obsessed, obsessed with getting it right - making it usable, a clear view and the hours ticked away. This was definitely a great way to learn! To branch out and take the risk of trying something that could have easily failed was no easy feat. Since the last entry, I've tweaked the view for a final time and worked out how to create my own app icons. It is not just a cliche saying it, but learning through direct practice and experience has really worked! Now I'm thinking about what 'simple' apps I could make next. It's very tempting to; various ideas have started entering my head since and during 'How Many Letters'. But I need a balance. I need to continue with Bob's course and try to understand Swift on a higher level as otherwise, my code will always be a bit limited and more verbose than it should be. My goal is to complete closures today, then decide if I w...