> ## 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

**Properties**

**cardNetwork** `CardNetwork` *required*

## Returns

**Returns**

**PrimerCardNetworkAsset**

**cardNetwork** `CardNetwork`

The card network that the asset represents.

**cardImage** `UIImage?`

`UIImage` representation of the asset.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.