Status Indicator
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
- Swift
statusIndicator.set(borderWidth:8)
.set(borderColor: [UIColor lightGreen])
.set(backgroundColor: [UIColor:green])
- Swift
statusIndicator.set(icon: UIImage(named: "lock.png"))