OndrejKunc / SkiaScene

Simple API to transform SkiaSharp objects using functions like zoom and rotate or using gestures like pan and pinch.
MIT License
67 stars 18 forks source link

[TouchTracking.Forms] Does not work on iOS when built in release mode #8

Closed jasekiw closed 5 years ago

jasekiw commented 5 years ago

I downloaded your library and it worked really well in debug mode. As soon as I switched it to release mode, all instances of this library don't fire the touch event. I'm using it exactly like it is used in the sample project.

OndrejKunc commented 5 years ago

And does it work in the sample app? Maybe the root cause is the absence of this line in the AppDelegate FinishedLaunching: var touchEffectType = typeof(TouchTracking.Forms.iOS.TouchEffect); Have you included this line in your project as well?

jasekiw commented 5 years ago

@OndrejKunc Yes I have included that line and it worked in debug mode but not in release mode. I have since switched to the XFormsTouch and it worked in release mode no problem. I basically swapped all the usages 1 for 1. That's what makes me think it's an issue in this package.

OndrejKunc commented 5 years ago

It looks like this issue https://github.com/xamarin/Xamarin.Forms/issues/3910

OndrejKunc commented 5 years ago

To make it work right now you need to use different workaround. Instead of the line posted above use this in your AppDelegate FinishedLaunching: var _ = new TouchTracking.Forms.iOS.TouchEffect();