Fix spacing

This commit is contained in:
Aliona 2018-01-15 18:01:36 +03:00
parent ea1cf7b864
commit 451bbccc74
1 changed files with 4 additions and 4 deletions

View File

@ -33,9 +33,9 @@ public extension UITableView {
backgroundView.backgroundColor = color
addSubview(backgroundView)
backgroundView.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([ backgroundView.leadingAnchor.constraint(equalTo: leadingAnchor),
backgroundView.bottomAnchor.constraint(equalTo: topAnchor),
backgroundView.widthAnchor.constraint(equalTo: widthAnchor),
backgroundView.heightAnchor.constraint(equalTo: heightAnchor)])
NSLayoutConstraint.activate([backgroundView.leadingAnchor.constraint(equalTo: leadingAnchor),
backgroundView.bottomAnchor.constraint(equalTo: topAnchor),
backgroundView.widthAnchor.constraint(equalTo: widthAnchor),
backgroundView.heightAnchor.constraint(equalTo: heightAnchor)])
}
}