Components
Important account information displayed at the top of the application.
TPAlertBanner
should be implemented as a global banner that displays at the top of the application. It is recommended to wrap this view inside a scrollview as it will grow indefinitely based on the content.
TPAlertBanner(theme: .info,message: "This is some info",ctaText: "Learn more",ctaLink: URL(string: "https://thumbtack.com")).environment(\.openURL, OpenURLAction { url inopenURL(url)return .handled})
The global banner should always be visible at the top of the application other than exceptions where it may be intentionally hidden to provide the desired UX. Some situations where the global banner may not be visible could be:
The global banner should refresh at predesignated triggers based on when the content may have changed, for example: