File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'TDBadgedCell'
3
- s . version = '5.2'
3
+ s . version = '5.2.1 '
4
4
s . license = { :type => 'MIT' , :file => 'LICENSE' }
5
5
s . summary = 'UITableViewCell subclass that adds a "badgeString" property to table view cells.'
6
6
s . description = <<-DESC
Original file line number Diff line number Diff line change @@ -56,10 +56,14 @@ open class TDBadgedCell: UITableViewCell {
56
56
badgeView. frame. origin. y = floor ( ( frame. height / 2 ) - ( badgeView. frame. height / 2 ) )
57
57
58
58
// Now lets update the width of the cells text labels to take the badge into account
59
- let labelWidth = self . contentView. frame. width - ( badgeView. frame. width + ( offsetX * 2 ) ) - 20 ;
60
- textLabel? . frame. size. width = labelWidth
61
- if ( ( detailTextLabel) != nil ) {
62
- detailTextLabel? . frame. size. width = labelWidth
59
+ let labelWidth = self . contentView. frame. width - ( badgeView. frame. width + ( offsetX * 2 ) ) ;
60
+
61
+ if textLabel != nil {
62
+ textLabel!. frame. size. width = labelWidth - textLabel!. frame. origin. x
63
+ }
64
+
65
+ if detailTextLabel != nil {
66
+ detailTextLabel!. frame. size. width = labelWidth - detailTextLabel!. frame. origin. x
63
67
}
64
68
}
65
69
You can’t perform that action at this time.
0 commit comments