[![CI Status](http://img.shields.io/travis/Igor Kurylenko/ITDAvatarPlaceholder.svg?style=flat)](https://travis-ci.org/Igor Kurylenko/ITDAvatarPlaceholder)
Generates an avatar placeholder image with first letters of the provided full user name in the center.
This library uses Chameleon (Flat Color Framework for iOS) for a background color generation. Moreover a color of the background is computed from a hash of the provided user name.
To run the example project, clone the repo, and run pod install
from the Example directory first.
To create the 256x256 placeholder image:
let avatarPlaceholderImage = UIImage.createAvatarPlaceholder(
userFullName: "Erlich Bachman", placeholderSize: CGSizeMake(256, 256))
ITDAvatarPlaceholder is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ITDAvatarPlaceholder"
Igor Kurylenko, [email protected]
ITDAvatarPlaceholder is available under the MIT license. See the LICENSE file for more info.