Understanding the basics of TipKit
Some may think that the primary challenge with displaying tips is creating views that contain relevant information and presenting it.
However, if that were the case, we wouldn’t need a whole framework. Instead, we should consider TipKit a complete system.
Let’s look at Figure 7.1:
Figure 7.1: Tip infrastructure
Figure 7.1 presents the essential components of the structure of TipKit in iOS. First, there is the tip center, a singleton that manages all the tips’ appearances in the app. The tip center has several responsibilities:
- Ensures that a tip stops appearing once invalidated or dismissed by the user
- Triggers the tips such that tips don’t overlay each other
- Displays tips according to specific rules
Right after the tip center, we have the tip model – a structure representing a specific tip declaration. Based on the tip model, we can create and display an...