This method returns a card asset for the specified card network. If an asset is not available, nil is returned.

The SDK must be initialized before this method is called or an error will be thrown.

1
public static func getCardNetworkAsset(for cardNetwork: CardNetwork) throws -> PrimerCardNetworkAsset?
swift
copy

Parameters

Properties
cardNetwork
CardNetworkRequired

Returns

PrimerCardNetworkAsset
cardNetwork
CardNetwork
The card network that the asset represents.
cardImage
UIImage?
`UIImage` representation of the asset.