[SwiftUI] AvatarGroup
SwiftUI API
#2022
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Platforms Impacted
Description of changes
Creating a SwiftUI API for
AvatarGroup
.Yes, it's always been a SwiftUI control, but the API was only ever designed to be used in a UIKit wrapper, where
Avatar
elements could be added and removed via event-driven method calls. Our new API is fully data-driven, as befits a native SwiftUI control.As part of this change, I've also avoided the ability to mark an
AvatarGroup
as transparent, aligning with our latest designs. This will eventually be deprecated across all existingAvatar
endpoints.Binary change
Total increase: 12,544 bytes
Total decrease: -52,432 bytes
Full breakdown
Verification
Visual Verification
SwiftUIAvatarGroupSwiftUI.mp4
UIKit
AvatarGroupUIKit.mp4
Pull request checklist
This PR has considered:
Microsoft Reviewers: Open in CodeFlow