TipKit displays contextual tips that teach people about features in your app across iOS, macOS, tvOS, watchOS, and visionOS. You define a tip by conforming a type to the Tip protocol, where you specify eligibility rules and control how frequently it appears; EventPredicateExpression lets you base eligibility on user events, and TipGroup coordinates a set of related tips. The framework presents tips through SwiftUI and UIKit tip views that you customize using TipViewStyleConfiguration and TipOption, and surfaces failures through TipKitError.
Defining Tips 2
Conform a type to the tip protocol and type-erase tips for storage in collections.
- PrTipiOS 17.0+A type that sets a tip's content, as well as the conditions for when it displays.
- StAnyTipiOS 17.0+A type-erased tip value.
Coordinating Tips 1
Group related tips so they appear in a coordinated sequence.
- ClTipGroupiOS 18.0+An object that coordinates a set of related tips so they appear in a defined order.
Eligibility Rules 2
Base a tip's eligibility on user events and configurable display options.
- PrEventPredicateExpressioniOS 17.0+A protocol for expressions that base a tip's eligibility on user events.
- PrTipOptioniOS 17.0+A type that represents the various customizations that you can make to a tip's behavior.
Customizing Tip Views 1
Style and configure the SwiftUI and UIKit views that present tips.
- StTipViewStyleConfigurationiOS 17.0+The container type that holds a tip's configuration.
Errors 1
Handle failures that occur while configuring or presenting tips.
- StTipKitErroriOS 17.0+A localized tip kit error.
Classes 4
- ClTipUICollectionReusableViewA UICollectionReusableView subclass that represents a tip.
- ClTipUICollectionViewCellA collection view cell that embeds a tip.
- ClTipUIPopoverViewControllerA view controller that displays a popover tip.
- ClTipUIViewA user interface element that represents a tip.
Structures 2
- StMiniTipViewStyleiOS 17.0+The default style for a TipView.
- StTipViewiOS 17.0+A user interface element that represents an inline tip.
Enumerations 1
- EnTipsiOS 17.0+TipKit namespace.
Protocols 1
- PrTipViewStyleiOS 17.0+A type that applies custom appearance to all tips within a view hierarchy.