-
Hello, I've been trying to get SkCanvasView working on my iPad, and I've run into the same problem as described here: #341, but with MAUI. On Windows and in the simulators, the canvas in my sample app works (i.e., it paints and show up as a red square). On my physical iPad, the canvas never fires the PaintSurface event, and so ends up black. I can tell it's there at least because of the position of the 'Invalidate' button I added; it's just not drawing. My MainPage.xaml:
My MainPage.xaml.cs:
And I've called UseSkiaSharp() in the app builder. For the record, the Touch event isn't firing on the iPad either (it does on Windows). I'm using Visual Studio Pro 17.4.0 Preview 4.0, and Skia.Views.Maui.Controls 2.88.3. Any insight is appreciated; perhaps I'm missing something obvious. Screenshots of my output: Windows: iPad: EDIT: Fixed my crappy code block formatting. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Maybe try
|
Beta Was this translation helpful? Give feedback.
-
hey @whodges did you ever get this to work? |
Beta Was this translation helpful? Give feedback.
-
It's been a minute, so i went back and made a new .NET 8 MAUI app and used the code above for MainPage with the latest SkiaSharp packages from nuget. tried it on my iphone and ipad - both worked. so I'm not sure when it started working, but it does now! |
Beta Was this translation helpful? Give feedback.
It's been a minute, so i went back and made a new .NET 8 MAUI app and used the code above for MainPage with the latest SkiaSharp packages from nuget. tried it on my iphone and ipad - both worked. so I'm not sure when it started working, but it does now!