Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.
Functions and constants
init · iOS 26.0+init
TypeScriptstatic initIsPresentedArrowEdgeAction(tip?: (SDKHandle) | null, isPresented?: (_SwiftUICore_Binding<boolean>) | null, arrowEdge?: (_SwiftUICore_Edge) | null, action?: ((arg0: Tips_Action) => void)): Promise<TipView<AnyTip>>
Swift declaration@MainActor @preconcurrency init(_ tip: (any Tip)?, isPresented: Binding<Bool>? = nil, arrowEdge: Edge? = nil, action: @escaping @MainActor @Sendable (Tips.Action) -> Void = { _ in }) where Content == AnyTip
Creates a tip view with an optional arrow.
Use a `TipView` when you want to indicate the UI element to which
the tip applies, but don't want to directly anchor the tip view to that
element. Use the <doc://com.apple.documentation/documentation/SwiftUI/View/popoverTip(_:arrowEdge:action:)> to anchor your tip to an element.
- Parameters:
- tip: The tip to display.
- isPresented: A binding that will automatically update to true when a tip is displayed. This value can be changed to temporarily hide or show a currently displayable tip. If this value is `nil`, the view will automatically disappear based on the tip's status and display rules.
- arrowEdge: The edge of the tip view that displays the arrow.
- action: The closure to perform when the user triggers a tip's action.
init · iOS 26.0+init
TypeScriptstatic initIsPresentedArrowEdgeAnchorIDAction(tip: (SDKHandle) | null, isPresented: (_SwiftUICore_Binding<boolean>) | null, arrowEdge: (_SwiftUICore_Edge) | null, anchorID: number, action?: ((arg0: Tips_Action) => void)): Promise<TipView<AnyTip>>
Swift declaration@MainActor @preconcurrency init<AnchorID>(_ tip: (any Tip)?, isPresented: Binding<Bool>? = nil, arrowEdge: Edge? = nil, anchorID: AnchorID, action: @escaping @MainActor @Sendable (Tips.Action) -> Void = { _ in }) where Content == AnyTip, AnchorID : Hashable, AnchorID : Sendable
Creates a tip view with an optional arrow.
Use a `TipView` when you want to indicate the UI element to which
the tip applies, but don't want to directly anchor the tip view to that
element. Use the <doc://com.apple.documentation/documentation/SwiftUI/View/popoverTip(_:arrowEdge:action:)> to anchor your tip to an element.
- Parameters:
- tip: The tip to display.
- isPresented: A binding that will automatically update to true when a tip is displayed. This value can be changed to temporarily hide or show a currently displayable tip. If this value is `nil`, the view will automatically disappear based on the tip's status and display rules.
- arrowEdge: The edge of the tip view that displays the arrow.
- anchorID: The identifier used to read the `.bounds` of the anchoring view.
- action: The closure to perform when the user triggers a tip's action.
init · iOS 18.0+init
TypeScriptstatic initArrowEdgeAction(tip?: (SDKHandle) | null, arrowEdge?: (_SwiftUICore_Edge) | null, action?: ((arg0: Tips_Action) => void)): Promise<TipView<AnyTip>>
Swift declaration@MainActor @preconcurrency init(_ tip: (any Tip)?, arrowEdge: Edge? = nil, action: @escaping @MainActor @Sendable (Tips.Action) -> Void = { _ in }) where Content == AnyTip
Creates a tip view with an optional arrow.
method · iOS 17.0+sendDonation
TypeScriptsendDonation(donation: number, completion?: ((() => void)) | null): void
Swift declarationfunc sendDonation(_ donation: DonationInfo, _ completion: (@Sendable () -> Void)? = nil)
Asynchronously donates an event along with its associated `Donation` value.
- Parameters:
- donation: Associated donation value.
- completion: Called upon completion of the event donation.
method · iOS 17.0+sendDonation
TypeScriptsendDonation24251(completion?: ((() => void)) | null): void
Swift declarationfunc sendDonation(_ completion: (@Sendable () -> Void)? = nil) where DonationInfo == Tips.EmptyDonation
Asynchronously donates an event with no associated `Donation` value.
- Parameters:
- completion: Called upon completion of the event donation.
method · iOS 26.0+deleteDonations
TypeScriptdeleteDonations(): Promise<void>
Swift declarationfunc deleteDonations() async throws
Deletes an event's existing donations.
init · iOS 26.0+init
TypeScriptstatic initIdDonationLimit(id: string, donationLimit: Tips_DonationLimit): Tips_Event<Tips_EmptyDonation>
Swift declarationinit(id: String, donationLimit: Tips.DonationLimit) where DonationInfo == Tips.EmptyDonation
Creates an event.
- Parameters:
- id: Unique identifier for persisting the event and its donations.
- donationLimit: Maximum number and maximum age of donations this event will persist and query.
init · iOS 26.0+init
TypeScriptstatic initIdDonationLimit30434(id: string, donationLimit: Tips_DonationLimit): Tips_Event<number>
Swift declarationinit(id: String, donationLimit: Tips.DonationLimit)
Creates an event with an associated donation value.
- Parameters:
- id: Unique identifier for persisting the event and its donations.
- donationLimit: Maximum number and maximum age of donations this event will persist and query.
init · iOS 17.0+init
TypeScriptstatic initId(id: string): Tips_Event<Tips_EmptyDonation>
Swift declarationinit(id: String) where DonationInfo == Tips.EmptyDonation
Creates an event.
- Parameters:
- id: Unique identifier for persisting the event and its donations.
init · iOS 17.0+init
TypeScriptstatic initId86586(id: string): Tips_Event<number>
Swift declarationinit(id: String)
Creates an event with an associated donation value.
- Parameters:
- id: Unique identifier for persisting the event and its donations.
method · iOS 17.0+donate
TypeScriptdonate(): Promise<void>
Swift declarationfunc donate() async where DonationInfo == Tips.EmptyDonation
Donates an event with no associated `Donation` value.
method · iOS 17.0+donate
TypeScriptdonate76458(donation: number): Promise<void>
Swift declarationfunc donate(_ donation: DonationInfo) async
Donates an event along with its associated `Donation` value.
- Parameters:
- donation: Associated donation value.
subscript · iOS 17.0+subscript
TypeScriptsubscript(keyPath: SDKHandle): unknown
Swift declarationsubscript<Value>(dynamicMember keyPath: KeyPath<DonationInfo, Value>) -> Value { get }
get · iOS 17.0+date
TypeScriptget date(): globalThis.Date
Swift declarationlet date: Date
get · iOS 17.0+donations
TypeScriptget donations(): Array<Tips_Event_Donation<number>>
Swift declarationvar donations: [Tips.Event<DonationInfo>.Donation] { get }