Popularity
3.5
Declining
Activity
0.0
Stable
184
8
20

Programming language: Swift
License: MIT License
Tags: Media     Image    
Latest version: v1.1.3

SwiftyAvatar alternatives and similar libraries

Based on the "Image" category.
Alternatively, view SwiftyAvatar alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of SwiftyAvatar or a related project?

Add another 'Image' Library

README

SwiftyAvatar

3.0 Apache 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!


Installation

Cocoapods:

  • pod 'SwiftyAvatar', '~> 1.1'

Manual:

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

How to use

Storyboard:

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

Code:

  • With default initializer

    let avatar = SwiftyAvatar()
    avatar.image = UIImage(named:"yourImage")
    
  • With your values

    let avatar = SwiftyAvatar(size: 50, 
                          roundess: 2, 
                          borderWidth: 1, 
                          borderColor: .orange, 
                          background: .black)
    
    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


*Note that all licence references and agreements mentioned in the SwiftyAvatar README section above are relevant to that project's source code only.