didMoveToWindow
TypeScriptdidMoveToWindow(): Promise<void>Swift declaration@MainActor @preconcurrency override final func didMoveToWindow()class · iOS 16.0+ · SDK 27.1
@MainActor @objc @preconcurrency final class SiriTipUIViewA view that displays the phrase a person uses to invoke an App Shortcut. You must call ``UISiriTip/setIntent(intent:)`` before displaying the view.
didMoveToWindow(): Promise<void>Swift declaration@MainActor @preconcurrency override final func didMoveToWindow()sizeThatFits(size: { width: number; height: number }): Promise<{ width: number; height: number }>Swift declaration@MainActor @preconcurrency override final func sizeThatFits(_ size: CGSize) -> CGSizeget intrinsicContentSize(): Promise<{ width: number; height: number }>Swift declaration@MainActor @preconcurrency override final var intrinsicContentSize: CGSize { get }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.
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 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`.
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 style(): Promise<__AppIntents_SwiftUI_SiriTipViewStyle>Swift declaration@MainActor @preconcurrency final var style: SiriTipViewStyle { get set }The style to use for the view.
setStyle(value: __AppIntents_SwiftUI_SiriTipViewStyle): Promise<void>Swift declaration@MainActor @preconcurrency final var style: SiriTipViewStyle { get set }The style to use for the view.
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.
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)