Now that we have integrated Mapbox GL into our project, it's time to learn the basics of the framework. In this recipe, we will create a basic app that shows a Mapbox GL map on screen. Here are the steps:
We will continue from the last step of the previous recipe after we have successfully linked and built our new project.
Main.storyboardfile. Storyboards allow us to visually create user interfaces. The current storyboard already contains
ViewController. We will add a new
Make sure that the Utilities sidebar is visible. If not, click on the Hide or Show Utilities button in the upper-right corner of Xcode. In the lower half of the Utilities sidebar, make sure that Objects are selected.
A list of the available UI elements will be visible. Find
UIViewand drag it into
UIViewControllerin the storyboard. As you drag
UIView, you will notice that...