Skip to content

Commit 265d7b1

Browse files
committed
Property for bouncing
1 parent a8a20f8 commit 265d7b1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

SWTableViewCell/PodFiles/SWTableViewCell.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ typedef NS_ENUM(NSInteger, SWCellState)
4040
@property (nonatomic, copy) NSArray *leftUtilityButtons;
4141
@property (nonatomic, copy) NSArray *rightUtilityButtons;
4242

43+
@property (nonatomic, assign) BOOL bounces;
44+
4345
@property (nonatomic, weak) id <SWTableViewCellDelegate> delegate;
4446

4547
- (void)setRightUtilityButtons:(NSArray *)rightUtilityButtons WithButtonWidth:(CGFloat) width;

SWTableViewCell/PodFiles/SWTableViewCell.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,16 @@ - (void)setRightUtilityButtons:(NSArray *)rightUtilityButtons WithButtonWidth:(C
283283
[self layoutIfNeeded];
284284
}
285285

286+
- (BOOL)bounces
287+
{
288+
return self.cellScrollView.bounces;
289+
}
290+
291+
- (void)setBounces:(BOOL)bounces
292+
{
293+
self.cellScrollView.bounces = bounces;
294+
}
295+
286296
#pragma mark - UITableViewCell overrides
287297

288298
- (void)didMoveToSuperview

0 commit comments

Comments
 (0)