mdg

MDGroupAvatarView

MDGroupAvatarView cocoapod

Showing:

Popularity

Downloads/wk

0

GitHub Stars

125

Maintenance

Last Commit

1yr ago

Contributors

3

Package

Dependencies

1

License

MIT

Categories

Readme

MDGroupAvatarView

This library provides a custom UIView with support for showing group of avatars. It’s used for group chat. The images list can be loaded from local or web url.

CI Status Version License Platform

 
## Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Drag UIView to storyboard or xib file. Then assign class of this view is MDGroupAvatarView.

NOTE: localGroupAvatarView and urlGroupAvatarView in this example are two properties connected to Storyboard.

Local Images

        var images = Array<UIImage>()
        images.append(UIImage(named: "img_avatar_01") ?? UIImage())
        images.append(UIImage(named: "img_avatar_02") ?? UIImage())
        images.append(UIImage(named: "img_avatar_03") ?? UIImage())
        localGroupAvatarView.setAvatarImages(images, realTotal: NUM_OF_MEMBER)

Images loaded from url

        var urls = Array<NSURL>()
        urls.append(NSURL(string: "https://img_url01.jpg")!)
        urls.append(NSURL(string: "https://img_url02.jpg")!)
        urls.append(NSURL(string: "https://img_url03.jpg")!)
        urls.append(NSURL(string: "https://img_url04.jpg")!)
        urlGroupAvatarView.setAvatarUrl(urls, realTotal: NUM_OF_MEMBER)

Requirements

Installation

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

pod "MDGroupAvatarView"

Author

dungttm, ttmdung203@gmail.com

License

MDGroupAvatarView 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