Chapter 5
Understanding ScrollView and Building a Carousel UI
After going through the previous chapter, I believe you should now understand how to build a complex UI using stacks. Of course, it will take you a lot of practice before you can master SwiftUI. Therefore, before delving into ScrollView to make the views scrollable, let's begin this chapter with a challenge. Your task is to create a card view similar to the one depicted in Figure 1.

By utilizing stacks, image views, and text views, you should be able to construct the desired UI. While I'll guide you through the implementation step by step later on, I encourage you to take some time to tackle the exercise and devise your own solution.
Once you create the card view, I will discuss ScrollView with you and build a scrollable interface using the card view. Figure 2 shows you the complete UIs.

To access the full content and the complete source code, please get your copy at https://www.appcoda.com/swiftui.