Posts

Showing posts with the label Jessy Catterwaul

RayWenderlich.com Layout in IOS Course - Part 6

Here we go! The final chapter. Possibly two entries but I may be able to do it in one. Then the Auto Layout is complete. As always I will do a consolidation entry. This chapter is all about constraints.  Start time - 13:35 Intro Attributes can be added - position, width and height Some of this is implied e.g. if you give the leading (left) and trailing (right) edges, then the width is derived from those Formulas are used to work out the position, width and height. Top and bottom Layout guide - keeps tab bars etc. separate. Stack views are usually the best way to set up views but constraints still needed. Add New Constraints So some cool shortcuts - add multiple heights/weights in one go. Do the whole make same height feature, based on one constraint already in. Minimum font scales - great if text is too big, then it will work on multiple devices. Drag Constraints Ok, so selecting options in the attributes - in this case centre horizontally and vertically ...

RayWenderlich.com Layout in IOS Course - Part 5

Image
It's been a while but for god reason! I've got a promotion at work, which means I've really got my future set. However, I am not going to abandon Swift. My work over the past 20-ish months has been rewarding and to let all of that go would be a shame. True, had I not got the promotion, I would probably be gravitating towards Swift more with an aim to transition to a career in the future. Anyway, that COULD still happen but it does make me want to rethink my goals a bit. We're also on an early holiday, so plenty of time to code and do a reflective entry of where I am and where I want to be. That will happen soon! For now, let's get on with the auto layout course! Start Time - 9:42 Intrinsic Content Size So this is the size that will fit EXACTLY into a a view's content. Content Hugging and Compression Resistance - these are rules that show the importance of contents not shrinking or resizing, bigger than the intrinsic size. 4 priority values to set. Vert...

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 Course - Second SwiftUI App Part 2 (and final - abandoned after this!)

Image
Two days in a row, baby! Back to this confusing, but useful in places course.  I have around 40 minutes so enough time for a whole chapter possibly.  Start Time - 17:15 We will use the above to add and delete tasks. A different view for new task? New Task View Here we go! Straight into a challenge... Well this was hard of course! To be fair, I'm still getting used to SwiftUI so good practice... Modal Views You have a + button in the upper right. var body : some View {         NavigationView {             List ( taskStore . tasks ) { task in                 Text (task. name )                                     }         . navigationBarTitle ( "Tasks" )             . navigationBarItems (     ...

Ray Wenderlich Course - Second SwiftUI App Part 1

Image
Here we are now! Haven't been able to code for a few days. A quick entry here - around 20 minutes, then some proper time tomorrow! Rather than play around with the SwiftUI view stuff, I feel like cracking on with another Ray course. There's plenty of content on RW.com so I want to get stuck in! *Entry ends up going over two days! Start Time - 12:01 I struggled with this 'To-do' app before. I want to have another crack with it as it looks updated with UI even though the overall rating (3.4 out of 5) isn't great. The dude's name is Jessy Catterwaul. He looks a little like the Joker! There will be challenges etc. along the way. Models A point about copyright statements - something to bear in mind if/when working for a specific company. A bit about copying a p-list into the main folder. Done. Models - created a Swift file. This is where the data model will go. Another Swift file created with a class. OK challenge time - nearly there for now! cl...