Chapter 20
Creating an Apple Wallet like Animation and View Transition

Do you use Apple's Wallet app? I believe so. In the previous chapter, we built a simple app with a Tinder-like UI. What we're going to do in this chapter is to create an animated UI similar to the one you see in the Wallet app. When you tap and hold a credit card in the wallet app, you can use the drag gesture to rearrange the cards. If you haven't used the app, open Wallet and take a quick look. Alternatively, you can visit this URL (https://link.appcoda.com/swiftui-wallet) to check out the animation we're going to build.

Figure 1. Building a Wallet-like animations and view transitions
Figure 1. Building a Wallet-like animations and view transitions

In the Wallet app, tapping one of the cards will bring up the transaction history. We will also create a similar animation, so you'll better understand view transitions and horizontal scroll view.

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

results matching ""

    No results matching ""