LetterAvatarBuilderConfiguration
@objc(LKLetterAvatarBuilderConfiguration)
open class LetterAvatarBuilderConfiguration : NSObject
Uses for configurating a LetterAvatarBuilder instance.
-
The size of an avatar image.
Declaration
Swift
@objc(size) open var size: CGSize
-
The username.
Declaration
Swift
@objc(username) open var username: String?
-
The flag that indicates of using single letter instead of two lettters.
Declaration
Swift
@objc(singleLetter) open var singleLetter: Bool
-
The letters font.
Declaration
Swift
@objc(lettersFont) open var lettersFont: UIFont?
-
The letters colors.
Declaration
Swift
@objc(lettersColor) open var lettersColor: UIColor
-
The background colors of a letter-based avatar.
Declaration
Swift
@objc(backgroundColors) open var backgroundColors: [UIColor]
-
The letters font attributes.
Declaration
Swift
@objc(lettersFontAttributes) open var lettersFontAttributes: [NSAttributedString.Key : Any]?