Skip to content

Commit f88287f

Browse files
committed
Added draggingViewOpacity property to making the opacity of the
dragging view configurable. Defaults to 1.0 (completely opaque).
1 parent efb1d8e commit f88287f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

BVReorderTableView.h

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
@property (nonatomic, assign) id <ReorderTableViewDelegate> delegate;
4747
@property (nonatomic, assign) CGFloat draggingRowHeight;
48+
@property (nonatomic, assign) CGFloat draggingViewOpacity;
4849
@property (nonatomic, assign) BOOL canReorder;
4950

5051
@end

BVReorderTableView.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ @implementation BVReorderTableView
5454
@synthesize draggingView;
5555
@synthesize savedObject;
5656
@synthesize draggingRowHeight;
57+
@synthesize draggingViewOpacity;
5758
@synthesize initialIndexPath;
5859

5960
- (id)init {
@@ -86,6 +87,7 @@ - (void)initialize {
8687
[self addGestureRecognizer:longPress];
8788

8889
self.canReorder = YES;
90+
self.draggingViewOpacity = 1.0;
8991
}
9092

9193

@@ -145,7 +147,7 @@ - (void)longPress:(UILongPressGestureRecognizer *)gesture {
145147
draggingView.layer.shadowOffset = CGSizeMake(0, 0);
146148
draggingView.layer.shadowRadius = 4.0;
147149
draggingView.layer.shadowOpacity = 0.7;
148-
//draggingView.layer.opacity = 0.8;
150+
draggingView.layer.opacity = self.draggingViewOpacity;
149151

150152
// zoom image towards user
151153
[UIView beginAnimations:@"zoom" context:nil];

0 commit comments

Comments
 (0)