Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The version selector is temporarily unavailable. Open any version directly →
iOS
Avatar — CometChat documentation.
CometChatAvatar
set(cornerRadius : CGFloat)
cornerRadius
set(borderColor : UIColor)
borderColor
set(backgroundColor : UIColor)
backgroundColor
set(borderWidth : CGFloat)
borderWidth
setAvatar(avatarUrl: String)
avatarUrl
setAvatar(avatarUrl: String, with name: String)
set(outerView: Bool)
avatar.set(cornerRadius : 50) .set(borderWidth : 2) .set(borderColor: [UIColor: red galaxy color]) .setAvatar(user: user.avatar) .setOuterViewSpacing( ... ) .setOuterView ( Color: black )
avatar.set(outerView : NO) .set(cornerRadius : 50) .set(text: ....) .set(textColor: ...) .set(textFont: ...) .setAvatar(user: user.avatar) .setAvatarWith (100) .setAvatarHeight(100) .setAvatarBackgroundColor (UIColor.blackColor)
Was this page helpful?