Creating the macOS version of the iOS app
Our app's iOS version showed a list of insects in one view and details regarding the selected insect in a separate view because of the limited amount of space available on a phone screen. However, a laptop screen has a larger amount of screen space. Therefore, we can display the list of insects on the left side of the screen and the details regarding the selected insect on the right side.
Getting ready
Download the chapter materials from GitHub:
Open the StartingPoint
folder and double-click on Cross-Platform.xcodeproj
to open the app built in the Creating an iOS app in SwiftUI recipe of this chapter. We will be continuing from where we left off in the previous recipe.
How to do it…
We'll create the macOS version of the app by reusing some components from the iOS version and...