Skip to content

Commit

Permalink
Change higlight subviews way.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Feb 17, 2022
1 parent a9e58c5 commit 0076ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Sources/SparrowKit/UIKit/Classes/Table/SPTableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ open class SPTableViewCell: UITableViewCell {
super.setHighlighted(highlighted, animated: animated)
let higlightContent = (higlightStyle == .content)
if higlightContent {
[imageView, textLabel, detailTextLabel].forEach({ $0?.alpha = highlighted ? 0.6 : 1 })
contentView.subviews.forEach({ $0.alpha = highlighted ? 0.6 : 1 })
// [imageView, textLabel, detailTextLabel].forEach({ $0?.alpha = highlighted ? 0.6 : 1 })
}
}

Expand Down
2 changes: 1 addition & 1 deletion SparrowKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'SparrowKit'
s.version = '3.5.6'
s.version = '3.5.7'
s.summary = 'Collection of native Swift extensions and classes to boost development process.'
s.homepage = 'https://github.com/ivanvorobei/SparrowKit'
s.source = { :git => 'https://github.com/ivanvorobei/SparrowKit.git', :tag => s.version }
Expand Down

0 comments on commit 0076ed5

Please sign in to comment.