Posts

Showing posts from February, 2020

RayWenderlich.com Layout in IOS Course - Part 4

Image
Here we go! So the course is split into Swift UKit. Interface builder. Let's do this! Start Time - 20:32 Introduction About half an hour tonight I reckon. Translates masks into constraints - apparently this is the option to use. So the whole point of Auto Layout is so you can fit onto any device. Stack views are coming here too. Autoresizing Fixed attribute will not change. OK, a key point here is that the content is all on an older Xcode - Xcode 11. So the features are all quite different. Trying to follow along still! Ok, can't even find size inspector! No point doing this on this earlier version of Xcode. So skimming through instead. I get the concept of all of this. The use of constraints etc. Autoresizing mask - flexibilities. All of the different options! Stack Views OK I've found some of the main views again! Out of practice with Swift UIKit! Stack view is non-rendering. That means non visible. Not even a background. Spacing is an attr...

RayWenderlich.com Layout in IOS Course - Part 3

Some momentum again! I feel positive about the content I'm learning, even if some of it is very complex. Right, straight onto this - I was partway through a challenge. Let's crack on! Start Time - 18:41 Challenge: Custom Alignment Guides OK, something does not seem to be working with this particular project. Errors coming up so just following along to see what Jessy does. This alignment guide is very hard! So it is something I think to revisit at the end of the course. Definitely will need some going over! I didn't have a clue for this one but then there wasn't much of a chance, as even Jessy admits. He says that this is beyond the complexity for most, which is me at this stage! So I'm putting this challenge down to a 'too hard!'. But will have another look another time! ZStacks Has a lot in common with the other two stacks. Zstack represents the background of the view. It uses BOTH horizontal and vertical. 9 built in values to use. So a poin...

RayWenderlich.com Layout in IOS Course - Part 2

Image
So last time I completed the nested stacks alignment. I've got a good understanding of how to use H and V stacks. Didn't quite get all of the extra bits of alignment but no worries at the moment. So cracking on - want to ideally finish this chapter today! Start Time - 12:31 OK this chapter may need two more entries. But the whole course is only 3 chapters in total. Alignment Guide Something else to remember from before is embed in stacks. I need to get used to the control, option and click way to bring this up to make it easier. Shortcuts in general too! Child view. Alignment guides - the line through the middle of the children! Position is based on the parent rules. Different alignment guide for items in the stack (children). Modifier - alignment value then compute value closure. Closures - my nemesis! Good opportunity here to get used to these. Another cool thing about this course is that it's using actual Xcode projects rather than playgrounds. Good ...

RayWenderlich.com Layout in IOS Course - Part 1

Image
Here we are! On February Half Term again in RAK! So a sense of Deja Vu. Sadly, looking back on a whole year, there hasn't been much progress. But that's all going to change! Yes, I've been on much more of a roll recently and am ready to dive into more RW.com courses. The last one was a meaty one and took well over a month. Next one, which makes sense at this stage, Layout in IOS.  Start Time - 11:10 So this course is about layout in both Swift UI and UIKit. Cool! It made sense to go for this course rather than one of the ones from 2018 - anything before October 2019 does not include SwiftUI! So Stack Alignment is the first bit of this. Stack Alignment This is a container view that has its children in a line. V and H Stack. Option, command, return - shortcut for toggling canvas on and off. Still need to click resume though! Option command and p - shortcut for refreshing that view. Another shortcut to practise! To go straight to inserting from library, it i...

Ray Wenderlich Functions and Types Course - CONSOLIDATION ENTRY!

Not wasting a moment since completing the functions and types course, time to review Catie's course in its entirety. To do so I'll be looking through my previous entries to make sense of the knowledge, rather than watching the videos again. Let's go! Start Time - 15:45 Entry 1 - 8/1/20 A general intro followed by functions. With the review of these, I generally had no issues. Recap of return type, default values...all good! Overloading - this means creating different functions with the same name. Each function with the same name needs to be unique. Stride function - new feature in Swift - for  i  in   stride (from:  10 , to:  2 , by:  -2 ) {      print (i) } So good for number sequences basically.  Entry 2 - 11/1/20 Advanced parameters as the main focus here.  Variadic parameters - use of ... so there can be multiple values.  Inout parameters - used if the value of the parameter could chan...

Ray Wenderlich Functions and Types Course - Part 12

Here we are! This will be to conclude Catie's course. It's been useful to go over the content. The issue is that none of it is project-based - I need to see more in context! The MOST useful way of using the info will be in the consolidation entry to follow this. So here we are, the rest on protocols and inheritance! Start Time - 12:56 Protocols and Extensions Extensions - I know about these already. Extending them to protocols... Using protocols you can say 'composition'. If class inheritance isn't quite working then protocols are the way to go! Extensions can't have stored properties or designated inits. At the moment I don't see the advantage of having extensions for a protocol when all of that could just be in one protocol. You can also extend native types e.g. Ints. This is quite advanced! extension Numeric {     var squared : Self { self * self } } An example of putting in member-wise init.  Challenge! Last one fo...