> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-agentbuddy-4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Status Indicator

> Status Indicator — CometChat documentation.

This component is of the class `UImageView`. It's customisable to display the status of the user's presence as online, offline using colour codes or can be used to display type of a group as password protected, public or private using a custom image.

***

## Methods

| Methods                                       | Description                                                  |
| --------------------------------------------- | ------------------------------------------------------------ |
| `set(cornerRadius: CGFloat)`                  | Sets the `cornerRadius` for `CometChatStatusIndicator` class |
| `set(borderColor: UIColor)`                   | Sets the `borderColor` for `CometChatStatusIndicator` class  |
| `set(borderWidth: CGFloat)`                   | Sets the `borderWidth` for `CometChatStatusIndicator` class  |
| `set(backgroundColor: UIColor)`               | Sets the `color` for `CometChatStatusIndicator` class        |
| `set(icon: UIImage, with tintColor: UIColor)` | Sets the `image for`CometChatStatusIndicator\`\` class       |

***

## Usage

<Tabs>
  <Tab title="Swift">
    ```swift theme={null}
    statusIndicator.set(borderWidth:8)
    							 .set(borderColor: [UIColor lightGreen])
                   .set(backgroundColor: [UIColor:green])
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Swift">
    ```swift theme={null}
    statusIndicator.set(icon: UIImage(named: "lock.png"))
    ```
  </Tab>
</Tabs>

***
