Skip to content

Replace FrozenSet with IReadOnlyList#1839

Merged
TheCodeTraveler merged 5 commits into
mainfrom
Replace-`FrozenSet`-with-`IReadOnlyList`
Apr 28, 2024
Merged

Replace FrozenSet with IReadOnlyList#1839
TheCodeTraveler merged 5 commits into
mainfrom
Replace-`FrozenSet`-with-`IReadOnlyList`

Conversation

@TheCodeTraveler

@TheCodeTraveler TheCodeTraveler commented Apr 27, 2024

Copy link
Copy Markdown
Collaborator

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

Additional information

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

@TheCodeTraveler TheCodeTraveler 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
Comment thread src/CommunityToolkit.Maui.Core/Views/Alert/AlertView.macios.cs
@TheCodeTraveler TheCodeTraveler merged commit 66d42c0 into main Apr 28, 2024
@TheCodeTraveler TheCodeTraveler deleted the Replace-`FrozenSet`-with-`IReadOnlyList` branch April 28, 2024 18:17
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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