Skip to content

Commit 4fa3c8c

Browse files
author
Jonathan Peppers
committed
Attempt at fixing crash we experience in VisualElementTracker
I am confused why this weird code is even here... It was calling into CADisplayLinkerTicker which turns off CheckForIllegalCrossThreadCalls I am both scared and confused...
1 parent b0cc6ce commit 4fa3c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Xamarin.Forms.Platform.iOS/VisualElementTracker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void OnUpdateNativeControl(CALayer caLayer)
211211
};
212212

213213
if (thread)
214-
CADisplayLinkTicker.Default.Invoke(update);
214+
Device.BeginInvokeOnMainThread(update);
215215
else
216216
update();
217217

0 commit comments

Comments
 (0)