Closed seltzered closed 9 years ago
IIRC, they're fixing the behavior in iOS 9.
Still, this will make the changes work on older OSes.
Ah, interesting! For reference, I was encountering this on osx 10.10.4 / 10.10 sdk . Will need to test this on El Capitan eventually.
Merging back in try/catch around removeObserver that's similarly in main SVGKit (see https://github.com/SVGKit/SVGKit/blob/2.x/Source/QuartzCore%20additions/SVGKLayer.m#L60-L66 ) . This is a workaround to an exception that gets thrown:
"Cannot remove an observer <SVGKLayer 0x608000a68a00> for the key path "showBorder" from <SVGKLayer 0x608000a68a00> because it is not registered as an observer"
upon calling removeObserver, even though the init always adds the observer.I'm trying to investigate this a bit further, but for now the try/catch seems to help avoid an exception from causing a total crash.
Right now I seem to observe this when using SVGKLayer (on it's own, without use of SVKLayeredImage) . I'm still trying to understand why, but I don't observe the issue if I set the layer's action dictionary to a dict of [NSNull null] objects:
of course this effectively disables animation support, so isn't a great workaround.