⚠️
This method is deprecated. Please use getCardNetworkAsset(for:)
.
This method returns a card network image associated with a particular card network.
The SDK must be initialized before this method is called or an error will be thrown.
1
static func getCardNetworkImage(for cardNetwork: CardNetwork) throws -> UIImage?
swift
copy
Parameters
Parameters
cardNetwork
CardNetworkRequiredcases
This network has a string value of 'OTHER' which matches what is returned by Primer APIs when a network is not identifiable for a given card. Passing this will return a generic card icon.
Returns
Throws
An error that will be thrown in case the SDK was not initialized properly. Before calling this method, the SDK must be initialized.