UIView+Glow.h 736 B

12345678910111213141516171819202122232425262728
  1. //
  2. // UIView+Glow.h
  3. //
  4. //
  5. // Created by James on 11/4/14.
  6. // Copyright (c) 2014 James. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIView (Glow)
  10. @property (nonatomic, readonly) UIView *glowView;
  11. - (void) glowOnce;
  12. - (void) glowOnceAtLocation:(CGPoint)point inView:(UIView *)view;
  13. - (void) startGlowing;
  14. - (void) startGlowingWithColor:(UIColor *)color intensity:(CGFloat)intensity;
  15. - (void) startGlowingWithColor:(UIColor*)color fromIntensity:(CGFloat)fromIntensity toIntensity:(CGFloat)toIntensity repeat:(BOOL)repeat;
  16. - (void) startGlowingWithColor:(UIColor*)color fromIntensity:(CGFloat)fromIntensity toIntensity:(CGFloat)toIntensity repeat:(BOOL)repeat duration:(CGFloat)dur;
  17. - (void) stopGlowing;
  18. @end