Initializer

init(data:)

Initializes and returns an instance of the class.

Declaration

init(data: Data) throws

Parameters

data

A definition of a pass, as described in PassKit Package Format Reference.

error

On error, populated with a description of the error.

Return Value

The newly initialized instance.

Discussion

Errors returned via the error parameter are suitable for presentation to the user. Check the console for more detailed information.

See Also