One Logo Pool Ball
_AppIntents_UIKit · IOS API REFERENCE

SiriTipUIView

class · iOS 16.0+ · SDK 27.1

@MainActor @objc @preconcurrency final class SiriTipUIView

A view that displays the phrase a person uses to invoke an App Shortcut. You must call ``UISiriTip/setIntent(intent:)`` before displaying the view.

Members (10)

method · iOS 16.0+

didMoveToWindow

TypeScript
didMoveToWindow(): Promise<void>
Swift declaration
@MainActor @preconcurrency override final func didMoveToWindow()
method · iOS 16.0+

sizeThatFits

TypeScript
sizeThatFits(size: { width: number; height: number }): Promise<{ width: number; height: number }>
Swift declaration
@MainActor @preconcurrency override final func sizeThatFits(_ size: CGSize) -> CGSize
get · iOS 16.0+

intrinsicContentSize

TypeScript
get intrinsicContentSize(): Promise<{ width: number; height: number }>
Swift declaration
@MainActor @preconcurrency override final var intrinsicContentSize: CGSize { get }
get · iOS 16.0+

isPresented

TypeScript
get isPresented(): Promise<boolean>
Swift declaration
@MainActor @objc @preconcurrency dynamic final var isPresented: Bool { get set }

Determines if the view should be presented to the user. Defaults to `true` and gets set to `false` after the dismissal button is tapped. Changing this has no affect if `allowsDismissal` is set to `false`. This value is KVO compliant.

set · iOS 16.0+

isPresented

TypeScript
setIsPresented(value: boolean): Promise<void>
Swift declaration
@MainActor @objc @preconcurrency dynamic final var isPresented: Bool { get set }

Determines if the view should be presented to the user. Defaults to `true` and gets set to `false` after the dismissal button is tapped. Changing this has no affect if `allowsDismissal` is set to `false`. This value is KVO compliant.

get · iOS 16.0+

allowsDismissal

TypeScript
get allowsDismissal(): Promise<boolean>
Swift declaration
@MainActor @preconcurrency final var allowsDismissal: Bool { get set }

Indicates if the tip view should display a dismissal button Defaults to `false`.

set · iOS 16.0+

allowsDismissal

TypeScript
setAllowsDismissal(value: boolean): Promise<void>
Swift declaration
@MainActor @preconcurrency final var allowsDismissal: Bool { get set }

Indicates if the tip view should display a dismissal button Defaults to `false`.

get · iOS 16.0+

style

TypeScript
get style(): Promise<__AppIntents_SwiftUI_SiriTipViewStyle>
Swift declaration
@MainActor @preconcurrency final var style: SiriTipViewStyle { get set }

The style to use for the view.

set · iOS 16.0+

style

TypeScript
setStyle(value: __AppIntents_SwiftUI_SiriTipViewStyle): Promise<void>
Swift declaration
@MainActor @preconcurrency final var style: SiriTipViewStyle { get set }

The style to use for the view.

init · iOS 16.0+

init

TypeScript
static init(style?: __AppIntents_SwiftUI_SiriTipViewStyle): Promise<SiriTipUIView>
Swift declaration
@MainActor @preconcurrency init(style: SiriTipViewStyle = .automatic)

A view that displays the phrase for an App Shortcut. - Parameter style: The style to use for this view, defaults to automatic.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SiriTipUIView.setIntent(intent:)

This declaration needs Swift generic type arguments. (no canonical witness for Intent)

All _AppIntents_UIKit types →