microsoft / microsoft/fluentui-apple

AvatarGroup API Suggestion

Open
#1,336 0 comments 0 reactions 1 assignee View on GitHub

@sophialee0416 is already working on this.

Since Nov 1, 2022.

Dominant language
Swift
Stars
977
Forks
180
Avg merge
21h 38m
Merged PRs (30d)
1

Description

Platform
  • iOS
  • macOS
Describe the feature that you would like added

Since Fluent UI only exposed some basic functions such as getAvatar(at:) and setAvatar(at:), it’s difficult to use this component in a setting where avatar changes a lot and we need to keep tracking indices on our end.

Comparing to the same component on Android side, they can simply call setAvatars(list: List<IAvatar>) to update its content. I was wondering if we can adapt this on iOS side as well or maybe simply expose the avatar array so we can modify it directly?

What component or utility would this be added to

AvatarGroup

Have you discussed this feature with our team, and if so, who

Sophia

Additional context/screenshots

the proposed suggestions have been implemented on Android side already: https://github.com/microsoft/fluentui-android/blob/master/fluentui_persona/src/main/java/com/microsoft/fluentui/persona/AvatarGroupView.kt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.