swi

SwiftyAvatar

iOS Swift class to create circular or rounded avatar images

Showing:

Popularity

Downloads/wk

0

GitHub Stars

184

Maintenance

Last Commit

3yrs ago

Contributors

2

Package

Dependencies

0

License

Apache 2.0

Categories

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 kalaitzidis34@gmail.com
  • Fork the project and make your own changes

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial