Latest 0.0.4
Homepage https://github.com/ttmdung203/MDGroupAvatarView
License MIT
Platforms ios 8.0
Dependencies SDWebImage
Authors

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

MDGroupAvatarView
 
MDGroupAvatarView

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 UIGroupAvatarView.

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, [email protected]

License

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

Latest podspec

{
    "name": "MDGroupAvatarView",
    "version": "0.0.4",
    "summary": "Custom UIView show group of avatar",
    "description": "This library provides a custom UIView with support for showing group of avatars. Itu2019s use for group chat. The images list can be loaded from local or web url. The dependency CocoaPod is SDWebImage",
    "homepage": "https://github.com/ttmdung203/MDGroupAvatarView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ttmdung203": "ttmdung[email protected]"
    },
    "source": {
        "git": "https://github.com/ttmdung203/MDGroupAvatarView.git",
        "tag": "0.0.4"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MDGroupAvatarView/Classes/**/*",
    "dependencies": {
        "SDWebImage": [
            "~>3.8"
        ]
    }
}

Pin It on Pinterest

Share This