Reputation: 2326
I'm making app with using Xamarin.forms. I'm drawing 2d view with using SkiaSharp.
I'm able to use SetNeedDisplay on iOS pcl side to make animation.
But I want to call it from Forms pcl. Is there any method like that?
Upvotes: 5
Views: 4525
Reputation: 5222
SkiaSharp Views for Xamarin.Forms provides the InvalidateSurface()
for this particular reason:
https://developer.xamarin.com/api/member/SkiaSharp.Views.Forms.SKCanvasView.InvalidateSurface()/
and
https://developer.xamarin.com/api/member/SkiaSharp.Views.Forms.SKGLView.InvalidateSurface()/
Upvotes: 7