Latest 1.1.3
License Apache 2.0
Platforms ios 9.0

CocoaPods Compatible

iOS Swift 3.0 UIimage class
Create awesome circular avatar images!

enter image description here

IBInspectable attributes accessible from the identity inspector.

  • Roundness
  • Border width
  • Border color
  • Background color

You can see the changes directly on the storyboard!



  • pod ‘SwiftyAvatar’, ‘~> 1.1’


  • drag ‘n drop SwiftyAvatar.swift into your project.

How to use


  • Select the image you want to use as avatar and change the class to SwiftyAvatar.


  • With default initializer
    let avatar = SwiftyAvatar()
    avatar.image = UIImage(named:"yourImage")
  • With your values
    let avatar = SwiftyAvatar(size: 50, roundess: 2, borderWidth: 1, borderColor:, background:
    avatar.image = UIImage(named: "yourImage")

Contact & Contribute

  • Feel free to contact me with ideas or suggestions at [email protected]
  • Fork the project and make your own changes

Latest podspec

    "name": "SwiftyAvatar",
    "version": "1.1.3",
    "summary": "A UIImageView class for creating circular or rounded avatar images, IBDesignable to make all changes via storyboard",
    "description": "> A `UIImageView` class for creating **circular or rounded avatar images**, IBDesignable to make all changes via storyboardnn[![2.0](]([![Build Status][travis-image]][travis-url]n[![Apache](]([![CocoaPods Compatible](]( let's you create easily rounded or circular avatar images.nnSimply change the UIImageView with SwiftyAvatar class and adjust the available properties.nnYou can see the changes in storyboard because SwiftyAvatar is @IBDesignable!nn![Alt text]( Featuresnn- [x] @IBDesignablen- [x] Border Width & Colorn- [x] Background Color (if the image has trasparent background)n- [x] Spin animationnn## Requirementsnn- iOS 8.0+n- Xcode 7.3nn## Installationnn#### CocoaPodsnYou can use [CocoaPods]( to install `SwiftyAvatar` by adding it to your `Podfile`:nn```rubynplatform :ios, '8.0'nuse_frameworks!npod 'SwiftyAvatar', '~> 1.0'n```nn``` swiftnimport UIKitnimport SwiftyAvatarn```n#### Manuallyn1. Download and drop ```SwiftyAvatar.swift``` in your project.n2. Congratulations!nn## Usage examplennFrom storyboard, just change the class of your 'UIImageView' to 'SwiftyAvatar' and adjust the available properties.nnWith code:nn```swiftnlet avatar = SwiftyAvatar()navatar.image = UIImage(named:"yourImage")nnornnlet avatar = SwiftyAvatar(size: 50,n                          roundess: 2,n                          borderWidth: 1,n                          borderColor:,n                          background:            avatar.image = UIImage(named: "yourImage")n```nn## Release Historyn* 1.1.3n    * Fixed Use of undeclared type 'SwiftyAvatar' on @IBOutletn* 1.1.2n    * usage from code with SwiftyAvatar() initializern* 1.1n    * swift-3 supportn* 1.0n    * First releasenn## ContributennWe would love for you to contribute to **SwiftyAvatar**, check the ``LICENSE`` file for more info.nnThanks to RishabhTayal ( for readme spelling corrections, example and Pod supportnn## MetannDimitrios Kalaitzidis u2013 [@kalaitzidis34]( u2013 [email protected] under the Apache license. See ``Apache License`` for more information.nn[]([swift-image]:[swift-url]:[license-image]:[license-url]:[travis-image]:[travis-url]:[codebeat-image]:[codebeat-url]:",
    "homepage": "",
    "screenshots": "",
    "license": {
        "type": "Apache 2.0",
        "file": "LICENSE"
    "authors": {
        "Dimitrios Kalaitzidis": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1.3"
    "platforms": {
        "ios": "9.0"
    "source_files": "SwiftyAvatar/Classes/**/*",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This