Skip to content

Commit 0076ed5

Browse files
committed
Change higlight subviews way.
1 parent a9e58c5 commit 0076ed5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Sources/SparrowKit/UIKit/Classes/Table/SPTableViewCell.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ open class SPTableViewCell: UITableViewCell {
109109
super.setHighlighted(highlighted, animated: animated)
110110
let higlightContent = (higlightStyle == .content)
111111
if higlightContent {
112-
[imageView, textLabel, detailTextLabel].forEach({ $0?.alpha = highlighted ? 0.6 : 1 })
112+
contentView.subviews.forEach({ $0.alpha = highlighted ? 0.6 : 1 })
113+
// [imageView, textLabel, detailTextLabel].forEach({ $0?.alpha = highlighted ? 0.6 : 1 })
113114
}
114115
}
115116

SparrowKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'SparrowKit'
4-
s.version = '3.5.6'
4+
s.version = '3.5.7'
55
s.summary = 'Collection of native Swift extensions and classes to boost development process.'
66
s.homepage = 'https://github.com/ivanvorobei/SparrowKit'
77
s.source = { :git => 'https://github.com/ivanvorobei/SparrowKit.git', :tag => s.version }

0 commit comments

Comments
 (0)