Skip to content

Commit

Permalink
Merge pull request MortimerGoro#145 from BasThomas/textspacing
Browse files Browse the repository at this point in the history
centerIconOverText now takes a spacing argument.
  • Loading branch information
MortimerGoro committed Oct 17, 2015
2 parents b6ac563 + fec39fa commit f2c9999
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MGSwipeTableCell/MGSwipeButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ typedef BOOL(^MGSwipeButtonCallback)(MGSwipeTableCell * sender);

-(void) setPadding:(CGFloat) padding;
-(void) setEdgeInsets:(UIEdgeInsets)insets;
-(void) centerIconOverText;
-(void) centerIconOverTextWithSpacing: (CGFloat) spacing;

@end
@end
3 changes: 1 addition & 2 deletions MGSwipeTableCell/MGSwipeButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ -(BOOL) callMGSwipeConvenienceCallback: (MGSwipeTableCell *) sender
return NO;
}

-(void) centerIconOverText {
const CGFloat spacing = 3.0;
-(void) centerIconOverTextWithSpacing: (CGFloat) spacing {
CGSize size = self.imageView.image.size;
self.titleEdgeInsets = UIEdgeInsetsMake(0.0,
-size.width,
Expand Down

0 comments on commit f2c9999

Please sign in to comment.