Latest 0.1.1
Homepage https://github.com/xflagstudio/AvatarGroup
License MIT
Platforms ios 10.0
Dependencies SnapKit
Authors

Build Status
Version
License
Platform

AvatarGroup is a avatars’ group view library which can arrange the circle avatars in a stack view.

Demo

Documentation

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

pod 'AvatarGroup'

The following properties are supported in AvatarGroupView:

  • spacing (CGFloat): the space between to avatars.
  • reverse (Bool): reverse the AvatarGroupView.
  • alignment (AvatarGroup.Alignment)
  • borderColor (UIColor)
  • borderWidth (CGFloat)

Add and remove the avatar images with the following methods:

func add(image: UIIamge?)
func add(images: [UIIamge?])
func remove(at index: Int)

Kingfisher Extension

AvatarGroup supports to load image url with Kingfisher.

pod 'AvatarGroup/Kingfisher'

Add and remove the avatar urls with the following methods.

func add(url: URL?) 
func add(urls: [URL?])

Example

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

License

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

Latest podspec

{
    "name": "AvatarGroup",
    "version": "0.1.1",
    "summary": "An avatars' group view for iOS",
    "description": "AvatarGroup is a avatars' group view library which can arrange the circle avatars in a stack view.",
    "homepage": "https://github.com/xflagstudio/AvatarGroup",
    "screenshots": "https://raw.githubusercontent.com/xflagstudio/AvatarGroup/master/screenshots/demo.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lm2343635": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xflagstudio/AvatarGroup.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "10.0"
    },
    "default_subspecs": "Core",
    "dependencies": {
        "SnapKit": [
            "~> 5"
        ]
    },
    "subspecs": [
        {
            "name": "Core",
            "source_files": "AvatarGroup/Classes/Core/**/*"
        },
        {
            "name": "Kingfisher",
            "dependencies": {
                "AvatarGroup/Core": [],
                "Kingfisher": [
                    "~> 5"
                ]
            },
            "source_files": "AvatarGroup/Classes/Kingfisher/**/*"
        }
    ]
}

Pin It on Pinterest

Share This