//
//  MFSideMenuShadow.h
//  MFSideMenuDemoSearchBar
//
//  Created by Michael Frederick on 5/13/13.
//  Copyright (c) 2013 Frederick Development. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MFSideMenuShadow : NSObject

@property (nonatomic, assign) BOOL enabled;
@property (nonatomic, assign) CGFloat radius;
@property (nonatomic, assign) CGFloat opacity;
@property (nonatomic, strong) UIColor *color;
@property (nonatomic, assign) UIView *shadowedView;

+ (MFSideMenuShadow *)shadowWithView:(UIView *)shadowedView;
+ (MFSideMenuShadow *)shadowWithColor:(UIColor *)color radius:(CGFloat)radius opacity:(CGFloat)opacity;

- (void)draw;
- (void)shadowedViewWillRotate;
- (void)shadowedViewDidRotate;

@end

//
//  MFSideMenuShadow.h
//  MFSideMenuDemoSearchBar
//
//  Created by Michael Frederick on 5/13/13.
//  Copyright (c) 2013 Frederick Development. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MFSideMenuShadow : NSObject

@property (nonatomic, assign) BOOL enabled;
@property (nonatomic, assign) CGFloat radius;
@property (nonatomic, assign) CGFloat opacity;
@property (nonatomic, strong) UIColor *color;
@property (nonatomic, weak) UIView *shadowedView;

+ (MFSideMenuShadow *)shadowWithView:(UIView *)shadowedView;
+ (MFSideMenuShadow *)shadowWithColor:(UIColor *)color radius:(CGFloat)radius opacity:(CGFloat)opacity;

- (void)draw;
- (void)shadowedViewWillRotate;
- (void)shadowedViewDidRotate;

@end

--- 
+++ 
@@ -14,7 +14,7 @@
 @property (nonatomic, assign) CGFloat radius;
 @property (nonatomic, assign) CGFloat opacity;
 @property (nonatomic, strong) UIColor *color;
-@property (nonatomic, weak) UIView *shadowedView;
+@property (nonatomic, assign) UIView *shadowedView;
 
 + (MFSideMenuShadow *)shadowWithView:(UIView *)shadowedView;
 + (MFSideMenuShadow *)shadowWithColor:(UIColor *)color radius:(CGFloat)radius opacity:(CGFloat)opacity;
Change weak reference to assign for backwards compatibility
