TechnologiesUI & App Frameworks

TipKit

iOSmacOStvOSwatchOSvisionOS

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.

  • Pr
    TipiOS 17.0+
    A type that sets a tip's content, as well as the conditions for when it displays.
  • St
    AnyTipiOS 17.0+
    A type-erased tip value.

Coordinating Tips 1

Group related tips so they appear in a coordinated sequence.

  • Cl
    TipGroupiOS 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.

  • Pr
    EventPredicateExpressioniOS 17.0+
    A protocol for expressions that base a tip's eligibility on user events.
  • Pr
    TipOptioniOS 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.

  • St
    TipViewStyleConfigurationiOS 17.0+
    The container type that holds a tip's configuration.

Errors 1

Handle failures that occur while configuring or presenting tips.

  • St
    TipKitErroriOS 17.0+
    A localized tip kit error.

Classes 4

  • Cl
    TipUICollectionReusableView
    A UICollectionReusableView subclass that represents a tip.
  • Cl
    TipUICollectionViewCell
    A collection view cell that embeds a tip.
  • Cl
    TipUIPopoverViewController
    A view controller that displays a popover tip.
  • Cl
    TipUIView
    A user interface element that represents a tip.

Structures 2

  • St
    MiniTipViewStyleiOS 17.0+
    The default style for a TipView.
  • St
    TipViewiOS 17.0+
    A user interface element that represents an inline tip.

Enumerations 1

  • En
    TipsiOS 17.0+
    TipKit namespace.

Protocols 1

  • Pr
    TipViewStyleiOS 17.0+
    A type that applies custom appearance to all tips within a view hierarchy.

Extends 3

SequencePredicateExpressionsView
← UI & App Frameworks