Plugin.Maui.ScreenSecurity icon indicating copy to clipboard operation
Plugin.Maui.ScreenSecurity copied to clipboard

Bug ios

Open fabien367 opened this issue 6 months ago • 0 comments

when the application has screen security activated, several views are added to the super view when focus is lost. Only on iOS. The fix is ​​to loop over the views in order to remove the UIVisualEffectView

In this function:

private static void DisableBlurScreenProtection(UIWindow? window) { if (window is not null) { foreach (var subview in window.Subviews) { if (subview is UIVisualEffectView) { subview.RemoveFromSuperview(); } } _blurBackground = null; } }

fabien367 avatar Aug 06 '24 12:08 fabien367