Angela Yu Xcode 12 Course - Part 20 (lectures 190 to 192)

Another big gap between entries! Never mind. It's the 'Spring Break' (sounds very American, eh!) so a bit more time hopefully. Going to pick up where I left off with Firebase. The layout and setup was a bit different to what Angela had so need to bear that in time.  Let's go!

Start Time - 12:48

Xcode installing a few updates. Let's just recap where we got to. I currently have this screen while I boot up Xcode. Last time this was running indefinitely and I had to leave it.




I had a new Xcode file - the xcworkspace one and got all of the pod install sorted. If the above message is still there when Xcode is updated (hopefully soon!) then I will just crack on regardless. A good chance to look ahead at the lectures in this particular project:

OK here is a run through -

191 - saving data to Firebase
192 - Registering users
193 - closures (YES, I need to understand these better!)
194 - event driven nature of apps
195 - completion handlers
196- navigation controllers
197 - coding the login screen
198 - note about next lesson
199 - tableviews
200 - custom message class
201 - note about next lesson
202 - UI animations
203 - sending messages (must be actually using the app!)
204 - observing for database changes
205 - bug fix - historical data
206 - update security setting
207- improve the UX - add progress spinner
208 - improving UI - differentiating between users
209 - download project

And that will be the entire project! Lots of new, technical and possibly tricky (le's face it, definitely tricky!) content. A natural point after this will be to try another project - something education related perhaps.

OK so Xcode updated and stit lll the same message running. I'm just going to crack on.

Right, the below is necessary to access firebase. I've done a module too.

//TODO: Initialise and Configure your Firebase here:
        

        FirebaseApp.configure()

Right this is a real load of faff. Computer has crashed and needed restarting. Still I don't have the right Firebase stuff. 

Basically the message is still loading and without that I'm screwed. An idea is to actually run the app - on the simulator, then on my phone if not. If that doesn't work then I'm going to abandon this project, sorry Angela. 

YES! That worked - at last!!

So much confusion still though - our database does not come up with anything and analytics are still waiting...

Going to crack on and see what happens!

Such different layout and options here - honestly not sure if there is much point continuing!

Right - something somehow seems to have worked! Am going to continue for now as I would hate to get to the 'usual stage' and quit Angela's course!

Registering users

On the sign in methods bit, I've changed the email to be enabled but not the with link part (different to Angela's). 

Segues -

IMPORTANT! All segues need an idenifier...So I've made the connection between login button and screen. GOT IT! So that means the actual LINE needs to be given a name. That's what I've missed in the past.

So the documentation shows different methods and code and how to use them in Swift.

Cool! I've gone through the code and got a user (made up) added!

Password info is different though....supposed to be at this stage! Secure text entry needed for the password field apparently!

OK two things here - the secure text entry means that the next letter/number typed will turn to a little black circle - fine. But also I've seen that you can have auto enable return key! I'll try that with the times table app at some point..

That will do for now!

Finish Time - 13:55 (1 hour 7 minutes)

A tough session but I persevered! Made some key breakthroughs such as running the app to get the authentication, getting the database working...yes it was following code but it's tricky when the context is unfamiliar, plus that the Firebase website is different to what Angela had when she created this project! Anyway, next time it's closures (advanced Swift!) so that will be useful. After that, I want to continue with this project. A quick calculation is another 2 hours and a quarter of lecture content - that will take me at least 4 hours most likely! So another hour or so tomorrow, then keep that trickling along when I'm back in the UK and the Chat project complete. There are plenty, plenty more projects and content after that. So, the best thing to do will be try a) a general app using some of what I have learned, then b) something with Firebase/APIs etc. to put that into practice. Something F1 related possibly. 



Comments

Popular posts from this blog

*Xcode Project Entry 2* F1 Quiz - part 1

Angela Yu Course Part 10 (up to lesson 112)

Angela Yu Xcode 12 Course - Part 7 (lectures 74 to 79)