Posts

Showing posts with the label Laurie Gray

Ray Wenderlich Course - SwiftUI (Part 7)

So this may be the last bit for now from Laurie. I've learned a lot from him but it is taking a long, long time to go through the technical stuff. I will finish this chapter, then review what else there is on rw.com. With a Black November, I've signed up for the year! So no pressure in terms of renewing per month. A year should give me enough time and access that I need.  Start Time - 16:58 Navigation View Yes! These are for navigating views - for going from one to another. Navigation controller used to be used for this. Back to the same project as last time. So, again hard stuff! The code has been wrapped in a NavigationView, then there was a bit more code to go with that. A new SwiftFile to have each of the book pictures and titles. COOL FEATURE! You can select a certain bit of a code - in this case, the VStack with that whole section. Command click, then go to Extract Subview. From there, you can rename the extracted view what you want, then create a new Swift ...

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

*BONUS ENTRY* Putting SwiftUI Into Practice - Part 2

Image
Second and final bonus entry! This is a bit more of a chance to put into practice some of the aspects of SwiftUI that I'm still getting used to.  Start Time - 20:29 Here is the list from before - List - how to get items in a vertical list Image - including all the properties and modifiers Buttons - again, modifiers and other bits DatePicker - options for what day, month, year Toggle - something that is on/off Slider - a value going up or down H/V/Z Stack ForEach - a loop basically Form - as you would see in lots of iPhone menus Last time I covered list, image and ForEach. So, logically let's work on the other stuff - buttons, datepicker, toggle, slider, Stacks and Form! Buttons *20 minute delay      var body : some View {               Button (action: {          print ( "Good food!" )      }) {          VStack { ...