update constraints after setting insets

This commit is contained in:
Andrey Ovsyannikov 2017-11-17 17:39:44 +03:00
parent 19524c09b1
commit bb9723bb28
2 changed files with 3 additions and 1 deletions

View File

@ -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"

View File

@ -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() {