LetterAvatarBuilderConfiguration

@objc(LKLetterAvatarBuilderConfiguration)
open class LetterAvatarBuilderConfiguration : NSObject

Uses for configurating a LetterAvatarBuilder instance.

  • A size of an avatar image.

    Declaration

    Swift

    @objc(size)
    open var size: CGSize
  • An username.

    Declaration

    Swift

    @objc(username)
    open var username: String?
  • A 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(useSingleLetter)
    open var useSingleLetter: Bool
  • Letters font.

    Declaration

    Swift

    @objc(lettersFont)
    open var lettersFont: UIFont?
  • Colors that are used to draw image.

    Declaration

    Swift

    @objc(lettersColor)
    open var lettersColor: UIColor
  • Background colors of the image.

    Declaration

    Swift

    @objc(backgroundColors)
    open var backgroundColors: [UIColor]
  • Letters font attributes.

    Declaration

    Swift

    @objc(lettersFontAttributes)
    open var lettersFontAttributes: [NSAttributedString.Key : Any]?
  • Indicates whether to generate circle or square image.

    Declaration

    Swift

    @objc(circle)
    open var circle: Bool
  • A border width of the image.

    Declaration

    Swift

    @objc(borderWidth)
    open var borderWidth: CGFloat
  • A border color of the image.

    Declaration

    Swift

    @objc(borderColor)
    open var borderColor: UIColor
  • A Boolean flag indicating whether the avatar is opaque.

    Declaration

    Swift

    @objc(isOpaque)
    open var isOpaque: Bool