Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace FrozenSet with IReadOnlyList #1839

Merged
merged 5 commits into from
Apr 28, 2024

Conversation

brminnick
Copy link
Collaborator

@brminnick brminnick commented Apr 27, 2024

Description of Change

This PR replaces FrozenSet with IReadOnlyList.

This provides a workaround that resolves a crash caused by a bug in Mono / iOS: dotnet/runtime#101427

This also provides a performance improvement due to the high cost of creating a FrozenSet: #1829 (comment)

Linked Issues

PR Checklist

  • Has a linked Issue, and the Issue has been approved(bug) or Championed (feature/proposal)
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Documentation created or updated: https://github.com/MicrosoftDocs/CommunityToolkit/pulls

Additional information

This is a breaking change to our public API and will require a major version bump

@brminnick brminnick added the breaking change This label is used for PRs that include a breaking change label Apr 27, 2024
pictos
pictos previously approved these changes Apr 28, 2024
@brminnick brminnick merged commit 66d42c0 into main Apr 28, 2024
8 checks passed
@brminnick brminnick deleted the Replace-`FrozenSet`-with-`IReadOnlyList` branch April 28, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This label is used for PRs that include a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Inappropriate use of FrozenSet [BUG] Toast.Show crashing on iOS Release builds
3 participants