AvatarGroup is a avatars' group view library which can arrange the circle avatars in a stack view.
AvatarGroup is available through CocoaPods. To install it, simply add the following line to your Podfile:
The following properties are supported in
- spacing (
CGFloat): the space between to avatars.
- reverse (
Bool): reverse the AvatarGroupView.
- alignment (
- borderColor (
- borderWidth (
Update avatar images with the following method:
func setAvatars(images: [UIIamge?])
AvatarGroup supports to load image url with Kingfisher.
Update avatar urls with the following methods.
func setAvatars(urls: [URL?])
RxSwift and Kingfisher Extension
AvatarGroup supports to load image url with both RxSwift and Kingfisher.
Bind an observable object to the binder
urls of the reactive extension.
viewModel.avatarUrls.bind(to: avatarGroupView.rx.urls).disposed(by: disposeBag)
To run the example project, clone the repo, and run
pod install from the Example directory first.
AvatarGroup is available under the MIT license. See the LICENSE file for more info.