Create user avatars without storing. Simple and easy to use.
- Create user avatar
- Store avatar to UIImage
To integrate AvatarHashView into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'AvatarHashView'
To include AvatarHashView using Carthage, simply add this in your Cartfile
:
github "impul/AvatarHashView"
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request.
First of all you can review Example target. You can use AvatarHashView by setting UIView class:
@IBOutlet weak var avatarView: AvatarHashView!
...
avatarView.setUser(hash: "userId")
You also can use it directly in code
let avatar = AvatarHashView(hash: "userId", frame: avatarFrame)
view.addSubview(avatar)
Store avatar to UIImage
let image = avatar.image
AvatarHashView is released under the MIT License.