CometChatDate is a UILabel which is used to show the date and time. It provides various methods to customize the appearance and behavior of the CometChatDate.
How to integrate CometChatDate ?
SinceCometChatDate is a UILabel, It can be added directly in the build method. CometChatDate includes various parameters to customize its UI.
Usage
- Swift
Methods
| Methods | Type | Description |
|---|---|---|
set(timestamp: Int) | Int | Used to set time stamp |
set(pattern: CometChatDatePattern) | CometChatDatePattern | Used to set pattern with different logics TIME,DAY_DATE,DAY_DATE_TIME |