From 04244c79fa2d4ec0a958cb7bf48d06c932401105 Mon Sep 17 00:00:00 2001 From: cat0363 Date: Wed, 13 Sep 2023 16:31:53 +0900 Subject: [PATCH] Add redrawing of Snackbar and Toast when the screen is rotated --- src/CommunityToolkit.Maui.Core/Views/RoundedView.macios.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/CommunityToolkit.Maui.Core/Views/RoundedView.macios.cs b/src/CommunityToolkit.Maui.Core/Views/RoundedView.macios.cs index 9a2e2f9c6..8cfd8144c 100644 --- a/src/CommunityToolkit.Maui.Core/Views/RoundedView.macios.cs +++ b/src/CommunityToolkit.Maui.Core/Views/RoundedView.macios.cs @@ -55,6 +55,13 @@ public override void Draw(CGRect rect) Layer.MasksToBounds = true; } + /// + 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();