diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c56de1d..f9dc03c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +### 0.7.11 +- **Fix**: `addHeaderBackground` cells overlapping. + ### 0.7.10 - **Fix**: `wtihInsets` renamed to `with insets` diff --git a/LeadKit.podspec b/LeadKit.podspec index e7edd04f..b707efe4 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "LeadKit" - s.version = "0.7.10" + s.version = "0.7.11" 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" diff --git a/Sources/Extensions/UIKit/UITableView/UITableView+Extensions.swift b/Sources/Extensions/UIKit/UITableView/UITableView+Extensions.swift index d6fbdced..3d0d063f 100644 --- a/Sources/Extensions/UIKit/UITableView/UITableView+Extensions.swift +++ b/Sources/Extensions/UIKit/UITableView/UITableView+Extensions.swift @@ -32,6 +32,8 @@ public extension UITableView { let backgroundView = UIView() backgroundView.backgroundColor = color addSubview(backgroundView) + // don't overlap cells that has out of bounds content + backgroundView.layer.zPosition = -CGFloat(Float.greatestFiniteMagnitude) backgroundView.translatesAutoresizingMaskIntoConstraints = false NSLayoutConstraint.activate([backgroundView.leadingAnchor.constraint(equalTo: leadingAnchor), backgroundView.bottomAnchor.constraint(equalTo: topAnchor),