Posts

Showing posts from April, 2019

Angela Yu Xcode 12 Course - Part 23 (lectures 202 to 209)

Image
Here we go! Having failed miserably of getting much coding done at home, I'm back with a vengeance! Seriously though, I should NOT feel guilty. It's all about when I can actually have the time; it will come and go in phases. When I get to the 'One year' point (around June) then I can review what I have achieved and where I want to go with this. For now, the aim today is to get the Firebase course totally done. Let's go! Start Time - 13:15 UI Animations This sounds interesting - I'd assumed it was possible to do your own but having never SEEN it, I wasn't so sure! So Angela is showing the movement of a circle from left to right. All sorts of options for duration etc. So in this section This is wear we want animation coming up. The text field will move up so it's not obscured by the keyboard. Challenge - added the UITextFieldDelegate protocol no problems. I've done this before with a text bar! It means we're setting up this cha...

Angela Yu Xcode 12 Course - Part 22 (lectures 198 to 201)

Image
Yes, this time I AM managing two entries in a day! My aim is to complete the rest of this flash chat/Firebase course. It's doable. Let's do it! Start Time - 13:06 Logging In Before I start the video, just a note about the current project. There is a separate view controller for each screen - each separate one from the main storyboard. Something I've missed before is the links between these including segues. For the challenge I've used the same code as before -       Auth . auth (). signIn (withEmail: emailTextfield . text !, link: passwordTextfield . text !) { (user, error) in             if error != nil {                 print (error!)                              } else {                 print ( "Login success!" )              ...

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...