Skip to content

Commit f09f40e

Browse files
improve docs
1 parent 0149c7b commit f09f40e

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Sources/ComponentsKit/Components/AvatarGroup/Models/AvatarGroupVM.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ public struct AvatarGroupVM: ComponentVM {
55
/// The border color of avatars.
66
public var borderColor: UniversalColor = .background
77

8-
/// The color of the placeholder.
8+
/// The color of the placeholders.
99
public var color: ComponentColor?
1010

11-
/// The corner radius of the avatar.
11+
/// The corner radius of the avatars.
1212
///
1313
/// Defaults to `.full`.
1414
public var cornerRadius: ComponentRadius = .full
@@ -22,20 +22,20 @@ public struct AvatarGroupVM: ComponentVM {
2222
}
2323
}
2424

25-
/// The maximum number of visible avatars
25+
/// The maximum number of visible avatars.
2626
///
2727
/// Defaults to `5`.
2828
public var maxVisibleAvatars: Int = 5
2929

30-
/// The predefined size of the avatar.
30+
/// The predefined size of the component.
3131
///
3232
/// Defaults to `.medium`.
3333
public var size: ComponentSize = .medium
3434

3535
/// The array of avatar items with an associated id value to properly display content in SwiftUI.
3636
private var _identifiedItems: [IdentifiedAvatarItem] = []
3737

38-
/// Initializes a new instance of `AvatarVM` with default values.
38+
/// Initializes a new instance of `AvatarGroupVM` with default values.
3939
public init() {}
4040
}
4141

Sources/ComponentsKit/Components/AvatarGroup/Models/AvatarItemVM.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import UIKit
22

33
/// A model that defines the appearance properties for an avatar in the group.
44
public struct AvatarItemVM: ComponentVM {
5-
/// The unique identifier for the item.
6-
public var id = UUID()
7-
85
/// The source of the image to be displayed.
96
public var imageSrc: AvatarVM.ImageSource?
107

0 commit comments

Comments
 (0)