I see this in many projects that demonstrate the use of CAEmitterLayer
, but how does it translate to MonoTouch aka Xamarin.iOS?
+ (Class) layerClass
{
//configure the UIView to have emitter layer
return [CAEmitterLayer class];
}
I know I can use UIView.Layer.AddSubLayer()
but there seems to be performance impact.
I think you need to expose it to Obj runtime like the following.
[Export ("layerClass")]
public static Class LayerClass () {
return new Class (typeof (CAEmitterLayer));
}
For further info take a look to MonoTouch... CATiledLayer example.
Hope it helps.
P.S. Check the code. I've written without Xamarin Studio support.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With