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 only one letter, otherwise, as much as wil be possible to obtain. But no more than 3 letters.
Declaration
Swift
@objc(isSingleLettered) open var isSingleLettered: Bool
-
The letters font.
Declaration
Swift
@objc(lettersFont) open var lettersFont: UIFont?
-
The colors are used to draw image.
Declaration
Swift
@objc(lettersColor) open var lettersColor: UIColor
-
The background colors of the image.
Declaration
Swift
@objc(backgroundColors) open var backgroundColors: [UIColor]
-
The letters font attributes.
Declaration
Swift
@objc(lettersFontAttributes) open var lettersFontAttributes: [NSAttributedString.Key : Any]?
-
Indicates whether to generate circle or square image.
Declaration
Swift
@objc(isCircle) open var isCircle: Bool
-
The border width of the image.
Declaration
Swift
@objc(borderWidth) open var borderWidth: CGFloat
-
The border color of the image.
Declaration
Swift
@objc(borderColor) open var borderColor: UIColor