migueldeicaza / SkiaKit

Swift Bindings to the Skia 2D graphics Library
Other
135 stars 27 forks source link

Black canvas for all examples on device. #26

Open jenyalebid opened 2 years ago

jenyalebid commented 2 years ago

Hi, I am encountering an issue when running the sample application on device, where every example shows black screen instead of drawing. On the simulator the drawings are shown properly. Tried running on multiple devices, iOS 15.x

Are you able to replicate the issue or know any possible solutions?

Thank you. IMG_3D303191DB4A-1

jenyalebid commented 2 years ago

The issue seems to be with SkiaView image. The CGIamge created on line 98 in SkiaView.swift is not rendering properly. Not sure why, but converting image into UIImage or png and then back will render on device.