Posts

Showing posts with the label stacks

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

Ray Wenderlich Course - SwiftUI (Part 6)

So last week wasn't a GREAT one for coding. I did a bit more work on the practising side of things and have got used to Swift UI for several of the features. Back to Laurie's course now. I reckon 3 or 4 more entries! Start Time - 15:56 Scroll Views and Stacks Right first few minutes or so typing out code to catch up on! The scroll view is literally that - being then be able to scroll across the screen horizontally for this example.     ScrollView (. horizontal ) {              HStack {                  ForEach ( Book . demoBooks ) { book in             VStack {                 Text (book. title )             . padding ([. leading , . top , . trailing ])             Image (book. imageName )               ...