Skip to content

Commit 9eb04ed

Browse files
improve layout in UKAlertGroup
1 parent 9777cdc commit 9eb04ed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Sources/ComponentsKit/Components/AvatarGroup/UIKit/UKAvatarGroup.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,15 @@ open class UKAvatarGroup: UIView, UKComponent {
5757
// MARK: - Layout
5858

5959
private func layout() {
60-
self.stackView.vertically()
60+
self.stackView.centerVertically()
6161
self.stackView.centerHorizontally()
62+
63+
self.stackView.topAnchor.constraint(
64+
greaterThanOrEqualTo: self.topAnchor
65+
).isActive = true
66+
self.stackView.bottomAnchor.constraint(
67+
lessThanOrEqualTo: self.bottomAnchor
68+
).isActive = true
6269
self.stackView.leadingAnchor.constraint(
6370
greaterThanOrEqualTo: self.leadingAnchor
6471
).isActive = true

0 commit comments

Comments
 (0)