In the last chapter, we looked at what makes SwiftUI tick, the features that make the magic happen. However, that was a bit dry, mostly consisting of theory. The big thing in capitals that makes up and is part of SwiftUI is UI – that which is visual. So, in this chapter, we shall look at the various UI elements and their native UIKit counterparts. This could also function as a ready reckoner to help choose the appropriate element as required.
Everything Is a View
In SwiftUI, almost everything is a view, and this is different from the traditional View, the UI element that we are used ...