---
schema_version: "1"
id: 35378fcfb665ed07ff58d5c31e120a4188f3704315a4e22371b6656394e50865
title: AgentforceThemeRepresentation
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/agentforce-theme-representation-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-theme-representation-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4be2074765c7dfc51487d922616cac0b0fd6b5cb93431afdd2712ab36f9153b6
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# AgentforceThemeRepresentation

## Overview

Represents visual theme information for Salesforce objects. This structure provides the visual styling information needed to consistently display objects throughout the Agentforce UI. It includes icon resources, color schemes, and fallback options for when primary resources are unavailable.

## Declaration

```swift
struct AgentforceThemeRepresentation
```

## Properties

| Property        | Type       | Description                                               |
| --------------- | ---------- | --------------------------------------------------------- |
| `iconUrl`       | `String?`  | The URL for the object's icon image.                      |
| `iconColor`     | `String`   | The color associated with the object.                     |
| `fallbackImage` | `UIImage?` | A fallback image to use when the icon URL is unavailable. |

## Methods

| Method                                   | Signature                                                            | Description                         |
| ---------------------------------------- | -------------------------------------------------------------------- | ----------------------------------- |
| `init(iconUrl:iconColor:fallbackImage:)` | `init(iconUrl: String?, iconColor: String, fallbackImage: UIImage?)` | Creates a new theme representation. |

## Example Usage

```swift
// Standard object theme
let accountTheme = AgentforceThemeRepresentation(
    iconUrl: "https://salesforce.com/icons/standard/account.svg",
    iconColor: "#1B96FF"
)

// Custom object with fallback
let customTheme = AgentforceThemeRepresentation(
    iconUrl: nil, // Custom objects may not have icon URLs
    iconColor: "#FF6B35",
    fallbackImage: UIImage(named: "custom-object-icon")
)
```
