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 […]
MapKit
2 posts
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 […]