One Logo Pool Ball
_PassKit_SwiftUI · IOS API REFERENCE

AsyncShareablePassConfiguration

struct · iOS 16.0+ · SDK 27.1

@MainActor @preconcurrency struct AsyncShareablePassConfiguration<Content> where Content : View

A view that asynchronously creatings a `PKAddShareablePassConfiguration` based on metadatas and an action. This view is meant to be used in conjunction with `AddPassToWalletButton` when adding a shareable pass to Wallet. While the configuration is being generated a `.loading` result will be provided to the content allow a placeholder view to be shown. Example Usage: AsyncShareablePassConfiguration(metadata: createPassMetadata(), action: .add) { result in switch result { case .success(let configuration): AddPassToWalletButton(configuration) { result in // Handle add to Wallet result } .addPassToWalletButtonStyle(.black) case .failure(let error): ErrorView(error) case .loading: LoadingView() } }

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

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

AsyncShareablePassConfiguration.init(metadata:action:content:)

callback cannot propagate synchronous failure

AsyncShareablePassConfiguration.body

This protocol needs associated types that cannot yet cross the bridge.

All _PassKit_SwiftUI types →