> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# getCardNetworkAsset

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.

```swift SWIFT theme={"dark"}
public static func getCardNetworkAsset(for cardNetwork: CardNetwork) throws -> PrimerCardNetworkAsset?
```

## Parameters

<Expandable defaultOpen title="Properties">
  <ResponseField name="cardNetwork" type="CardNetwork" required />
</Expandable>

## Returns

<Expandable defaultOpen title="Returns">
  <ResponseField name="PrimerCardNetworkAsset">
    <ResponseField name="cardNetwork" type="CardNetwork">
      The card network that the asset represents.
    </ResponseField>

    <ResponseField name="cardImage" type="UIImage?">
      `UIImage` representation of the asset.
    </ResponseField>
  </ResponseField>
</Expandable>
