Skip to main content
Version: v4

Date

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 ?

Since CometChatDate is a UILabel, It can be added directly in the build method. CometChatDate includes various parameters to customize its UI.

Usage

//create object of CometChatDate
let date = CometChatDate()

Methods

MethodsTypeDescription
set(timestamp: Int)IntUsed to set time stamp
set(pattern: CometChatDatePattern)CometChatDatePatternUsed to set pattern with different logics TIME,DAY_DATE,DAY_DATE_TIME