amp

AMPAvatarView

A simple UIView subclass that shows an UIImage with a shadow in a circle.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

46

Maintenance

Last Commit

7yrs ago

Contributors

2

Package

Dependencies

0

License

MIT

Categories

Readme

AMPAvatarView

Version License Platform

A simple UIView subclass that shows an UIImage with a shadow in a circle.

Posted to put Objective-C Back on the Map again!

Usage

You can create an instance of this view using code or IB.

AMPAvatarView *avatar = [[AMPAvatarView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
avatar.image = [UIImage imageNamed:@"avatar"];
[self.view addSubview:avatar];

You can change some properties.

  • The image (really?)
  • Border width
  • Border color
  • Shadow radius
  • Shadow color

Example

Just a simple example to show how you can change a couple of things.

AMPAvatarView example

Installation

AMPAvatarView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AMPAvatarView"

Author

Alejandro Martinez, alexito4@gmail.com

License

AMPAvatarView is available under the MIT license. See the LICENSE file for more info.

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