Class
AvatarGroup
public final class AvatarGroup: UIView
A group of Avatars
Use make(size:,configurations:)
to create this view.
Relationships
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
Name | Type | Description |
---|---|---|
size | Avatar.Size |
The size of the avatars in the group |
configurations | [Avatar.Configuration] |
The configurations to create the avatars |
Returns
A new AvatarGroup