---
title: "Customize AI Assistant appearance"
canonical_url: "https://www.nutrient.io/guides/ios/ai-assistant/appearance-customization-uikit/"
md_url: "https://www.nutrient.io/guides/ios/ai-assistant/appearance-customization-uikit.md"
last_updated: "2026-05-14T21:57:26.888Z"
description: "Learn how to customize the appearance of AI Assistant using AIAssistantViewController in your UIKit iOS app."
---

# Customize AI Assistant appearance

### SwiftUI

[SwiftUI](https://www.nutrient.io/guides/ios/ai-assistant/appearance-customization-swiftui.md)

### UIKit

[UIKit](https://www.nutrient.io/guides/ios/ai-assistant/appearance-customization-uikit.md)

> Note: When using [on-device AI Assistant](https://www.nutrient.io/guides/ios/ai-assistant/on-device.md), showing the chat UI programmatically isn’t supported. However, you can still customize the appearance by using the [`pdfViewController(_:shouldShow:options:animated:)`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfviewcontrollerdelegate/pdfviewcontroller(_:shouldshow:options:animated:)) delegate method and checking for the `AIAssistantViewController` class.

The AI Assistant chat UI can be presented independently using [`AIAssistantViewController`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/aiassistantviewcontroller). You can also customize its appearance to match your application.

The chat UI provides color customization options for its appearance. You can customize background colors, text colors, and accent colors for messages, input fields, and the overall container.

## Appearance customization

To customize the appearance of [`AIAssistantViewController`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/aiassistantviewcontroller), configure the [`aiAssistantAppearance`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/aiassistantviewcontroller/aiassistantappearance) property using these three main appearance types:

- **[`AIAssistantAppearance`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/aiassistantappearance)** — Main type that controls how the entire chat interface looks. Set the background color and customize the message bubble and input field styling all in one place.

- **[`AIAssistantMessageAppearance`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/aiassistantmessageappearance)** — Controls the background colors, text colors, and colors for interactive elements like links for message bubbles from AI and users.

- **[`AIAssistantInputAppearance`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/aiassistantinputappearance)** — Controls the input area’s text field background and send button color.

### Example implementation

```swift

// Create and configure the AI Assistant view controller.
let aiAssistantViewController = AIAssistantViewController(session: aiSession)

// Configure input field appearance.
let chatInputAppearance = AIAssistantInputAppearance(
    inputBackgroundColor: UIColor(red: 0.98, green: 0.98, blue: 0.98, alpha: 1),
    sendButtonColor: UIColor(red: 0.435, green: 0.710, blue: 0.475, alpha: 1)
)

// Configure message appearance.
let chatMessageAppearance = AIAssistantMessageAppearance(
    userMessageBackgroundColor: UIColor(red: 0.85, green: 0.93, blue: 0.87, alpha: 1.0),
    aiMessageBackgroundColor: UIColor(red: 0.92, green: 0.89, blue: 0.98, alpha: 1.0),
    userMessageTextColor: UIColor(red: 0.18, green: 0.24, blue: 0.21, alpha: 1.0),
    aiMessageTextColor: UIColor(red: 0.16, green: 0.13, blue: 0.32, alpha: 1.0),
    interactiveAccentColor: UIColor(red: 0.38, green: 0.53, blue: 0.96, alpha: 1.0)
)

// Create overall appearance configuration.
let appearance = AIAssistantAppearance(
    backgroundColor: UIColor(red: 0.98, green: 0.98, blue: 0.98, alpha: 1),
    messageAppearance: chatMessageAppearance,
    inputAppearance: chatInputAppearance
)

// Apply the appearance.
aiAssistantViewController.aiAssistantAppearance = appearance

// Present the AI Assistant.
present(aiAssistantViewController, animated: true)

```
---

## Related pages

- [Add AI capabilities to Nutrient document viewer](/guides/ios/ai-assistant.md)
- [On-device AI Assistant with Apple Intelligence](/guides/ios/ai-assistant/on-device.md)
- [Work with multiple documents in AI Assistant](/guides/ios/ai-assistant/multiple-documents-uikit.md)
- [Customize AI Assistant appearance](/guides/ios/ai-assistant/appearance-customization-swiftui.md)
- [Introduction to AI Assistant](/guides/ios/ai-assistant/introduction.md)
- [Work with multiple documents in AI Assistant](/guides/ios/ai-assistant/multiple-documents-swiftui.md)

