In this chapter, we covered how linking SwiftUI to existing logic and UIKit frameworks can be achieved. First, we looked at how we integrate into a very common approach for networking by using NetworkHelper along with URLSession to perform our network request. From this, we were successfully able to update our SwiftUI View with ease.
Next, we took a deep dive into two of the main representable protocols, UIViewRepresentable and UIViewControllerRepresentable, and stepped through how we previously used these in Chapter 7, Creating a Form with States and Data Binding, in order to implement existing UIKit controls. We covered the differences between using both and understood why we need to take a slightly different approach for UIViewControllerRepresentable in order to dismiss the ViewController, should we need to.
Finally, we briefly covered the remaining available representable...