12345678910111213141516171819202122232425262728 |
- #import "SVGKImageView.h"
- #import "SVGKit.h"
- /**
- * SVGKit's ADVANCED version of UIImageView - for most cases, you want to use the simple version instead (SVGKImageView)
-
- This class is similar to SVGKImageView, but it DOES NOT HAVE the performance optimizations, and it WILL NOT AUTO-DRAW AT FULL RESOLUTION.
-
- However, it DOES SUPPORT CORE ANIMATION (which SVGKImageView cannot do), and in some cases that's more important.
-
- Basic usage:
- - as per SVGKImageView:
- - SVGKLayeredImageView *skv = [[SVGKLayeredImageView alloc] initWithSVGKImage: [SVGKImage imageNamed:@"image.svg"]];
- - [self.view addSubview: skv];
-
- Advanced usage:
- - to access the underlying layers, typecast the .layer property:
- - SVGKLayeredImageView *skv = [[SVGKLayeredImageView alloc] initWithSVGKImage: [SVGKImage imageNamed:@"image.svg"]];
- - SVGKLayer* layer = (SVGKLayer*) skv.layer;
-
- For Mac user:
- `SVGKLayeredImageView` is a layer-hosting view. It uses the `SVGKLayer` layer class for rendering.
-
- */
- @interface SVGKLayeredImageView : SVGKImageView
- @end
|