Skip to content

Commit be32188

Browse files
Re-add readonly bool shouldFillAndExpandHorizontally
We should never edit the value of `shouldFillAndExpandHorizontally`. It should be `readonly` to avoid future devs accidentally changing its value.
1 parent d8cf48d commit be32188

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/CommunityToolkit.Maui.Core/Views/Alert/AlertView.macios.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ namespace CommunityToolkit.Maui.Core.Views;
99
public class AlertView(bool shouldFillAndExpandHorizontally) : UIView
1010
{
1111
const int defaultSpacing = 10;
12+
1213
readonly List<UIView> children = [];
14+
readonly bool shouldFillAndExpandHorizontally = shouldFillAndExpandHorizontally;
1315

1416
/// <summary>
1517
/// Parent UIView

0 commit comments

Comments
 (0)