Merge pull request #99 from TouchInstinct/fix/cellAppearanceFix
Fix/cell appearance fix
This commit is contained in:
commit
921cfb909e
|
|
@ -53,3 +53,6 @@
|
|||
## 0.5.17
|
||||
- **Fix**: EmptyCell reusing appearance fix
|
||||
- **Fix**: SeparatorCell reusing separators fix
|
||||
|
||||
## 0.5.18
|
||||
- **Fix**: EmptyCell first appearance setup fix
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = "LeadKit"
|
||||
s.version = "0.5.17"
|
||||
s.version = "0.5.18"
|
||||
s.summary = "iOS framework with a bunch of tools for rapid development"
|
||||
s.homepage = "https://github.com/TouchInstinct/LeadKit"
|
||||
s.license = "Apache License, Version 2.0"
|
||||
|
|
|
|||
|
|
@ -34,6 +34,16 @@ public final class EmptyCell: SeparatorCell, AppearanceConfigurable, Configurabl
|
|||
}
|
||||
}
|
||||
|
||||
public override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
|
||||
super.init(style: style, reuseIdentifier: reuseIdentifier)
|
||||
|
||||
resetAppearance()
|
||||
}
|
||||
|
||||
public required init?(coder aDecoder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
public func configure(appearance: Appearance) {
|
||||
selectionStyle = .none
|
||||
backgroundColor = .clear
|
||||
|
|
@ -44,6 +54,11 @@ public final class EmptyCell: SeparatorCell, AppearanceConfigurable, Configurabl
|
|||
|
||||
public override func prepareForReuse() {
|
||||
super.prepareForReuse()
|
||||
|
||||
resetAppearance()
|
||||
}
|
||||
|
||||
private func resetAppearance() {
|
||||
configure(appearance: Appearance())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue