update constraints after setting insets
This commit is contained in:
parent
19524c09b1
commit
bb9723bb28
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = "LeadKit"
|
||||
s.version = "0.6.2"
|
||||
s.version = "0.6.3"
|
||||
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"
|
||||
|
|
|
|||
|
|
@ -144,12 +144,14 @@ open class SeparatorCell: UITableViewCell {
|
|||
topView.backgroundColor = configuration.color
|
||||
topSeparatorHeight = configuration.height
|
||||
topSeparatorInsets = configuration.insets ?? .zero
|
||||
setNeedsUpdateConstraints()
|
||||
}
|
||||
|
||||
private func updateBottomSeparator(with configuration: SeparatorConfiguration) {
|
||||
bottomView.backgroundColor = configuration.color
|
||||
bottomSeparatorHeight = configuration.height
|
||||
bottomSeparatorInsets = configuration.insets ?? .zero
|
||||
setNeedsUpdateConstraints()
|
||||
}
|
||||
|
||||
private func createConstraints() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue