Customizing our tips
So, TipKit provides an excellent infrastructure for presenting persistence-based tips in our app. However, the TipKit framework’s developers knew that handling tips requires more thought than just invalidating an ordinary view with an image and two texts.
Let’s see how we can customize tips to our own needs. We’ll start with their appearance.
Customizing our tips’ appearance
Unlike many other UI-based frameworks Apple has provided, TipKit lets us customize the tip views nicely. This may be because SwiftUI is a declarative framework, and expressing visual content becomes more natural. However, in the case of TipKit, Apple understood developers’ need to align the TipKit design with their apps.
There are two ways to customize our tip’s appearance. The first is to modify the tip’s properties and apply basic changes without changing the tip’s layout and components.
The second way is to implement...