---
schema_version: "1"
id: 34dadb451bc889f92958b47f5db9442fe8c3dbe0eae663cf838ef07f44f69755
title: SystemMessageView
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/system-message-view-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/system-message-view-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 89ea28c657d1bf5365341ad5a99cf9769607d119aadcdc57fc9c59c0a7881724
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# SystemMessageView

## Overview

A SwiftUI view for displaying system status messages in conversations. Provides a visually distinct way to show system-generated messages, notifications, and status updates that are separate from regular conversation messages.

## Declaration

```swift
@MainActor
struct SystemMessageView: View
```

## Properties

| Property | Type      | Description              |
| -------- | --------- | ------------------------ |
| body     | some View | Inherited from View.body |

## Methods

| Method | Signature                                                                                                                                                               | Description                                                    |
| ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| init   | init(message: SystemStatusMessage, style: SystemMessageStyle = .subtle, showTimestamp: Bool = false, isDismissible: Bool = false, onDismiss: ((String) -> Void)? = nil) | Creates a system message view with the specified configuration |

## Usage Examples

```swift
// Basic system message
SystemMessageView(
    message: systemStatusMessage,
    style: .subtle,
    showTimestamp: false
)

// Prominent message with timestamp
SystemMessageView(
    message: criticalSystemMessage,
    style: .badge,
    showTimestamp: true,
    onDismiss: { messageId in
        // Handle message dismissal
    }
)
```
