1234567891011121314151617181920212223242526272829303132333435 |
- #import "SVGKImageView.h"
- #import "SVGKit.h"
- /**
- * SVGKit
-
- WARNING 1: CAAnimations are NOT supported
- - because of the way this class works, any animations you add to the SVGKImage
-
- WARNING 2: UIScrollView requires special-case code
- - Apple
- - to disable auto-redraw-on-resize, set the BOOL: disableAutoRedrawAtHighestResolution to FALSE
-
- Basic usage:
- - as per UIImageView, simpy:
- - SVGKImageView *skv = [[SVGKImageView alloc] initWithSVGKImage: [SVGKImage imageNamed:@"image.svg"]];
- - [self.view addSubview: skv];
-
- Advanced usage:
- - to make the contents shrink to half their actual size, and tile to fill, set self.tileRatio = CGSizeMake( 2.0f, 2.0f );
- NOTE: I
- - to disable tiling (by default, it
- - FOR VERY ADVANCED USAGE: instead of this class, use the lower-level "SVGKLayeredImageView" class, which lets you modify every individual layer
-
- Performance:
- - NOTE: the way this works - calling Apple
- - NOTE: you MUST NOT call SVGKImage.CALayerTree.transform - that will have unexpected side-effects, because of Apple
- (hence: we currently use renderInContext:, even though we
- */
- @interface SVGKFastImageView : SVGKImageView
- @property(nonatomic) CGSize tileRatio;
- @property(nonatomic) BOOL disableAutoRedrawAtHighestResolution;
- @end
|