SVGKImageView.h 1.0 KB

1234567891011121314151617181920212223242526
  1. #import <Foundation/Foundation.h>
  2. #import "SVGKImage.h" // cannot import "SVGKit.h" because that would cause ciruclar imports
  3. /**
  4. * SVGKit's version of UIImageView - with some improvements over Apple's design. There are multiple versions of this class, for different use cases.
  5. STANDARD USAGE:
  6. - SVGKImageView *myImageView = [[SVGKFastImageView alloc] initWithSVGKImage: [SVGKImage imageNamed:@"image.svg"]];
  7. - [self.view addSubview: myImageView];
  8. NB: the "SVGKFastImageView" is the one you want 9 times in 10. The alternative classes (e.g. SVGKLayeredImageView) are for advanced usage.
  9. NB: read the class-comment for each subclass carefully before deciding what to use.
  10. */
  11. @interface SVGKImageView : UIView
  12. @property(nonatomic,strong) SVGKImage* image;
  13. @property(nonatomic) BOOL showBorder; /**< mostly for debugging - adds a coloured 1-pixel border around the image */
  14. @property(nonatomic,readonly) NSTimeInterval timeIntervalForLastReRenderOfSVGFromMemory;
  15. - (id)initWithSVGKImage:(SVGKImage*) im;
  16. @end