One Logo Pool Ball
Additional SDK Modules · IOS API REFERENCE

_PassKit_SwiftUI

Explore _PassKit_SwiftUI types and the APIs available through One's generated iOS bindings.

28 types

64 callable entries

32 skipped

67% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

Functions and constants

init · iOS 16.0+

init

TypeScript
static initAction(label: PayWithApplePayButtonLabel, action: (() => void)): Promise<PayWithApplePayButton<_SwiftUICore_EmptyView>>
Swift declaration
nonisolated init(_ label: PayWithApplePayButtonLabel = .plain, action: @escaping () -> Void)

Creates an Apple Pay button that triggers a custom action. - Parameters: - label: The button's label. See `PayWithApplePayButtonLabel` for a full list of types. Defaults to .plain. - action: The action to perform when the button is triggered.

init · iOS 16.0+

init

TypeScript
static initRequestOnPaymentAuthorizationChange(label: PayWithApplePayButtonLabel, request: _PassKit_PKPaymentRequest, onPaymentAuthorizationChange: ((arg0: PayWithApplePayButtonPaymentAuthorizationPhase) => void)): Promise<PayWithApplePayButton<_SwiftUICore_EmptyView>>
Swift declaration
nonisolated init(_ label: PayWithApplePayButtonLabel = .plain, request: PKPaymentRequest, onPaymentAuthorizationChange: @escaping (PayWithApplePayButtonPaymentAuthorizationPhase) -> Void)

Creates an Apple Pay button that displays the Apple Pay payment sheet. - Parameters: - label: The button's label. See `PayWithApplePayButtonLabel` for a full list of types. Defaults to .plain. - request: The payment request the button is for. - onPaymentAuthorizationChange: Called when there is a payment authorization phase change. - onMerchantSessionRequested: Requests an object that validates the identity of a merchant for a payment request. Required if using a merchant session.

init · iOS 16.0+

init

TypeScript
static initCarKeyPasswordSupportedRadioTechnologiesIssuerIdentifierOnCompletion(carKeyPassword: string, supportedRadioTechnologies: _PassKit_PKRadioTechnology, issuerIdentifier: string, onCompletion: ((arg0: SDKHandle) => void)): Promise<AddPassToWalletButton<_SwiftUICore_EmptyView>>
Swift declaration
nonisolated init(carKeyPassword: String, supportedRadioTechnologies: PKRadioTechnology, issuerIdentifier: String, onCompletion: @escaping (Result<PKSecureElementPass, any Error>) -> Void)

Creates an Add To Wallet button to add a Car Key to Wallet - Parameters: - carKeyPassword: The pairing password used to authenticate with the vehicle. - supportedRadioTechnologies: The supported radio technologies this car key supports. - issuerIdentifier: The issuer identifier for the car key. - onCompletion: Handler for an added passes.

init · iOS 16.0+

init

TypeScript
static initAction(action: (() => void)): Promise<AddPassToWalletButton<_SwiftUICore_EmptyView>>
Swift declaration
nonisolated init(action: @escaping () -> Void)

Creates an Add To Wallet button that triggers a custom action. - Parameters: - action: The action to perform when the button is triggered.

init · iOS 16.0+

init

TypeScript
static initOnCompletion(passes: Array<_PassKit_PKPass>, onCompletion: ((arg0: boolean) => void)): Promise<AddPassToWalletButton<_SwiftUICore_EmptyView>>
Swift declaration
nonisolated init(_ passes: [PKPass], onCompletion: @escaping (Bool) -> Void)

Creates an Add To Wallet button that displays the add pass flow. This should be used to add barcode passes or non secure element based passes, like a plane ticket or loyalty card. - Parameters: - passes: The passes you could like the user to add to their Wallet. - onCompletion: Handler for added passes.

init · iOS 16.0+

init

TypeScript
static initOnCompletion63283(configuration: _PassKit_PKAddSecureElementPassConfiguration, onCompletion: ((arg0: SDKHandle) => void)): Promise<AddPassToWalletButton<_SwiftUICore_EmptyView>>
Swift declaration
nonisolated init(_ configuration: PKAddSecureElementPassConfiguration, onCompletion: @escaping (Result<[PKSecureElementPass], any Error>) -> Void)

Creates an Add To Wallet button that displays the view flow to add a secure element pass. - Parameters: - configuration: The configuration that the view controller uses to create a Secure Element pass. - onCompletion: Handler for an added secure element pass.

init · iOS 17.0+

init

TypeScript
static init(amount: _Foundation_Decimal, currency: _Foundation_Locale_Currency): Promise<PayLaterView<_SwiftUICore_EmptyView>>
Swift declaration
nonisolated init(amount: Decimal, currency: Locale.Currency)
init · iOS 16.0+

init

TypeScript
static initAction(label: VerifyIdentityWithWalletButtonLabel, action: (() => void)): Promise<VerifyIdentityWithWalletButton<_SwiftUICore_EmptyView>>
Swift declaration
nonisolated init(_ label: VerifyIdentityWithWalletButtonLabel = .verifyIdentity, action: @escaping () -> Void)

Creates a Verify Identity with Wallet button that triggers a custom action. - Parameters: - label: The button's label. See `VerifyIdentityWithWalletButtonLabel` for a full list of types. Defaults to .verifyIdentity - action: The action to perform when the button is triggered.

init · iOS 16.0+

init

TypeScript
static initRequestOnCompletion(label: VerifyIdentityWithWalletButtonLabel, request: _PassKit_PKIdentityRequest, onCompletion: ((arg0: SDKHandle) => void)): Promise<VerifyIdentityWithWalletButton<_SwiftUICore_EmptyView>>
Swift declaration
nonisolated init(_ label: VerifyIdentityWithWalletButtonLabel = .verifyIdentity, request: PKIdentityRequest, onCompletion: @escaping (Result<PKIdentityDocument, any Error>) -> Void)

Creates a Verify Identity with Wallet button that triggers the identity authorization flow, with an empty fallback view. - Parameters: - label: The button's label. See `VerifyIdentityWithWalletButton.Label` for a full list of types. Defaults to .verifyIdentity - request: The identity request to make when the user taps the button - onCompletion: Completion handler to be called when the authorization flow finishes

Skipped declarations

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

AddPassToWalletButton.init(carKeyPassword:supportedRadioTechnologies:issuerIdentifier:onCompletion:fallback:)

callback cannot propagate synchronous failure

AddPassToWalletButton.init(_:onCompletion:fallback:)

callback cannot propagate synchronous failure

PayWithApplePayButton.init(_:action:fallback:)

callback cannot propagate synchronous failure

PayWithApplePayButton.body

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

AddPassToWalletButton.body

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

VerifyIdentityWithWalletButton.body

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

AsyncShareablePassConfiguration.init(metadata:action:content:)

callback cannot propagate synchronous failure

AsyncShareablePassConfiguration.body

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

ApplePayMerchandisingView.init(amount:currency:region:action:style:partners:fallback:)

The iOS SDK compiler rejected this binding: cannot convert default value of type '() -> AnyView' to expected argument type '() -> EmptyView' for parameter #6

ApplePayMerchandisingView.body

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

AddPassToWalletButton.init(_:onCompletion:fallback:)

callback cannot propagate synchronous failure

PayWithApplePayButton.init(_:request:onPaymentAuthorizationChange:fallback:)

callback cannot propagate synchronous failure

PayWithApplePayButton.init(_:request:onPaymentAuthorizationChange:onMerchantSessionRequested:fallback:)

callback cannot propagate synchronous failure

PayWithApplePayButton.init(_:request:onPaymentAuthorizationChange:onMerchantSessionRequested:)

This Swift callback must itself suspend asynchronously. (nonthrowing, so a rejected promise cannot reach swift)

VerifyIdentityWithWalletButton.init(_:request:onCompletion:fallback:)

callback cannot propagate synchronous failure

PayLaterView.body

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

AddPassToWalletButton.init(_:onRequest:onCompletion:fallback:)

callback cannot propagate synchronous failure

AddPassToWalletButton.init(_:onRequest:onCompletion:)

This Swift callback must itself suspend asynchronously. (nonthrowing, so a rejected promise cannot reach swift)

AddPassToWalletButton.init(_:cardholderName:passStyle:primaryAccountSuffix:cardDetails:description:filters:onRequest:onCompletion:fallback:)

callback cannot propagate synchronous failure

AddPassToWalletButton.init(_:primaryAccountSuffix:passStyle:cardDetails:description:filters:onRequest:onCompletion:fallback:)

callback cannot propagate synchronous failure

AddPassToWalletButton.init(_:cardholderName:passStyle:primaryAccountSuffix:cardDetails:description:filters:onRequest:onCompletion:)

This Swift callback must itself suspend asynchronously. (nonthrowing, so a rejected promise cannot reach swift)

AddPassToWalletButton.init(_:primaryAccountSuffix:passStyle:cardDetails:description:filters:onRequest:onCompletion:)

This Swift callback must itself suspend asynchronously. (nonthrowing, so a rejected promise cannot reach swift)

View.addPassToWalletButtonStyle(_:)

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

View.onApplePayPaymentMethodChange(perform:)

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

View.onApplePayShippingContactChange(perform:)

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

View.onApplePayShippingMethodChange(perform:)

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

View.onApplePayCouponCodeChange(perform:)

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

View.payLaterViewAction(_:)

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

View.payLaterViewDisplayStyle(_:)

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

View.payWithApplePayButtonStyle(_:)

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