CreationKit Documentation

Class Avatar​Group

public final class AvatarGroup: UIView  

A group of Avatars

Use make(size:,configurations:) to create this view.

AvatarGroup AvatarGroup UIView UIView AvatarGroup->UIView

Conforms To

UIView

Properties

avatars

public private(set) var avatars: [Avatar] = [] 

The avatars in the group. The first index of this array, is displayed on the left of the group.

configurations

public var configurations: [Avatar.Configuration]  

Methods

make(size:​configurations:​)

public static func make(size: Avatar.Size, configurations: [Avatar.Configuration]) -> AvatarGroup  

Creates a new group of avatars

Parameters

size Avatar.​Size

The size of the avatars in the group

configurations [Avatar.​Configuration]

The configurations to create the avatars

Returns

A new AvatarGroup