Skip to content

Commit

Permalink
Add redrawing of Snackbar and Toast when the screen is rotated (#1405)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladislav Antonyuk <33021114+VladislavAntonyuk@users.noreply.github.com>
  • Loading branch information
cat0363 and VladislavAntonyuk committed Sep 13, 2023
1 parent eb9ecfe commit 51d39d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/CommunityToolkit.Maui.Core/Views/RoundedView.macios.cs
Expand Up @@ -55,6 +55,13 @@ public override void Draw(CGRect rect)
Layer.MasksToBounds = true;
}

/// <inheritdoc />
public override void LayoutSubviews()
{
base.LayoutSubviews();
Draw(Frame);
}

static CGPath? GetRoundedPath(CGRect rect, NFloat left, NFloat top, NFloat right, NFloat bottom)
{
var path = new UIBezierPath();
Expand Down

0 comments on commit 51d39d2

Please sign in to comment.