Lesson 13 of Module 6 from the iOS Foundations course of CodeWithChris covers the set-up of the onboarding screens, and also adds the “Location Denied” view for when the user denies location access to the app. The Little Bug … ah! After yesterday’s incomprehensible error message that required extensive debugging, […]
CodeWithChris
In this lesson, we moved the business title into a reusable view. Our new BusinessTitle SwiftUI view is this: The bulk of the above was in our BusinessDetail view, but has now been replaced by this: This can be used elsewhere we need the business title. In the lesson, we […]
Having assigned the annotations last time around, this time we use them to react to the user tapping on them. In Lesson 11 of Module 6 from the CodeWithChris iOS Foundations course, we react to the user tapping on the annotation to display details of the business in question. This […]
I’ve seen a little about “delegates” when viewing code before, but it didn’t make sense. Lesson 10 of Module 6 from CodeWithChris takes us into UIKit, which is required for the MapView elements. I had to keep rewinding Chris’ video tutorial, but I don’t think much of it sank in […]
In this lesson, we learned to use the MapView, from UIKit, to show the business landmarks (from the Yelp! data) on the map. The key components of the code to do this are as follows: Method makeUIView is required to ensure the struct conforms to the UIViewRepresentable protocol. It effectively […]
Finding myself struggling quite a bit with the foibles of Xcode, whether it be taking an age to fire up the simulator, the simulator not playing well with the certificates from Proxyman, or Xcode not talking properly with GitHub, it’s with some relief that the most recent two lessons have […]
After the delays of the previous three days, it’s back to Learning New Stuff. Lesson 5 sees us creating the models required for parsing the JSON data we receive from Yelp. With Lesson 6 being to turn that data into user-friendly views. For this we’ve been introduced to Section, which […]
In Lesson 4 of Module 6 from the CodeWithChris iOS Foundation course, we learn how to retrieve data from the Yelp.com API. I’ve never used Yelp before, so don’t really know what it is, so it’s a double-learning experience for me. There are two points of note from this lesson […]