One Logo Pool Ball
TipKit · IOS API REFERENCE

TipUICollectionReusableView

class · iOS 17.0+ · SDK 27.1

@MainActor @objc @preconcurrency final class TipUICollectionReusableView

A UICollectionReusableView subclass that represents a tip. You create a tip view by providing a tip and an optional arrow edge. The tip is a type that conforms to the ``Tip`` protocol. The arrow edge is a directional arrow pointing away from the tip.

Members (13)

init · iOS 17.0+

init

TypeScript
static initCoder(coder: _Foundation_NSCoder): Promise<(TipUICollectionReusableView) | null>
Swift declaration
@MainActor @preconcurrency required dynamic init?(coder: NSCoder)
init · iOS 17.0+

init

TypeScript
static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<TipUICollectionReusableView>
Swift declaration
@MainActor @preconcurrency override dynamic init(frame: CGRect)
method · iOS 18.0+

configureTip

TypeScript
configureTip(tip: SDKHandle, arrowEdge?: (_SwiftUICore_Edge) | null, actionHandler?: ((arg0: Tips_Action) => void)): Promise<TipUICollectionReusableView>
Swift declaration
@discardableResult @MainActor @preconcurrency final func configureTip(_ tip: any Tip, arrowEdge: Edge? = nil, actionHandler: @escaping @MainActor @Sendable (Tips.Action) -> Void = { _ in }) -> Self

Configures a reusable view with a tip view embedded. - Parameters: - tip: The tip to display. - arrowEdge: The edge of the tip view that displays the arrow. - actionHandler: The closure to perform when the user triggers a tip's action. - Returns: A collection reusable view that embeds the specified tip.

get · iOS 18.0+

imageStyle

TypeScript
get imageStyle(): Promise<(SDKHandle) | null>
Swift declaration
@MainActor @preconcurrency final var imageStyle: (any ShapeStyle)? { get set }

Foreground style for the tip's image.

set · iOS 18.0+

imageStyle

TypeScript
setImageStyle(value?: (SDKHandle) | null): Promise<void>
Swift declaration
@MainActor @preconcurrency final var imageStyle: (any ShapeStyle)? { get set }

Foreground style for the tip's image.

get · iOS 17.0+

cornerRadius

TypeScript
get cornerRadius(): Promise<number>
Swift declaration
@MainActor @preconcurrency final var cornerRadius: CGFloat { get set }

Corner radius for the tip view.

set · iOS 17.0+

cornerRadius

TypeScript
setCornerRadius(value: number): Promise<void>
Swift declaration
@MainActor @preconcurrency final var cornerRadius: CGFloat { get set }

Corner radius for the tip view.

get · iOS 26.0+

backgroundStyle

TypeScript
get backgroundStyle(): Promise<SDKHandle>
Swift declaration
@MainActor @preconcurrency final var backgroundStyle: any ShapeStyle { get set }

The background style to use for the tip view.

set · iOS 26.0+

backgroundStyle

TypeScript
setBackgroundStyle(value: SDKHandle): Promise<void>
Swift declaration
@MainActor @preconcurrency final var backgroundStyle: any ShapeStyle { get set }

The background style to use for the tip view.

get · iOS 17.0+

imageSize

TypeScript
get imageSize(): Promise<{ width: number; height: number }>
Swift declaration
@MainActor @preconcurrency final var imageSize: CGSize { get set }

Size of the image displayed in the tip view.

set · iOS 17.0+

imageSize

TypeScript
setImageSize(value: { width: number; height: number }): Promise<void>
Swift declaration
@MainActor @preconcurrency final var imageSize: CGSize { get set }

Size of the image displayed in the tip view.

get · iOS 17.0+

viewStyle

TypeScript
get viewStyle(): Promise<SDKHandle>
Swift declaration
@MainActor @preconcurrency final var viewStyle: any TipViewStyle { get set }

The given style for TipView within the view hierarchy

set · iOS 17.0+

viewStyle

TypeScript
setViewStyle(value: SDKHandle): Promise<void>
Swift declaration
@MainActor @preconcurrency final var viewStyle: any TipViewStyle { get set }

The given style for TipView within the view hierarchy

Skipped declarations

No declarations were skipped in this snapshot.

All TipKit types →