summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs b/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs
index d14c288c..68ae10bb 100644
--- a/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs
@@ -169,13 +169,7 @@ namespace Xamarin.Forms.Platform.iOS
if (element != null)
SendVisualElementInitialized(element, this);
- var controller = (IElementController)oldElement;
- if (controller != null && controller.EffectControlProvider == this)
- controller.EffectControlProvider = null;
-
- controller = element;
- if (controller != null)
- controller.EffectControlProvider = this;
+ EffectUtilities.RegisterEffectControlProvider(this, oldElement, element);
if (Element != null && !string.IsNullOrEmpty(Element.AutomationId))
SetAutomationId(Element.AutomationId);