Step progress
In this final example, you’ll build an app that displays the user’s progress through a predefined number of steps. For example, it might make sense to split a form into several logical sections and organize them in such a way that, as the user completes one section, they move to the next step. A progress bar would be helpful feedback for the user.
You’ll insert a progress bar into the navigation bar, just below the title, so that the user knows how far they’ve gone and how far is left to go. You’ll also reuse the ProgressBar
component that you used earlier in this chapter.
Let’s take a look at the result first. There are four screens in this app that the user can navigate. Here’s what the First page (scene) looks like:
Figure 24.4: The first screen
The progress bar under the title reflects the fact that the user is 25% through the navigation. Let’s see what the Third screen looks like:
...