diff --git a/CHANGELOG.md b/CHANGELOG.md index d6549d1a..c2e1af8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +### 0.7.8 +- **Update**: Rename setToCenter(withInsets:) to pintToSuperview(withInsets:excluding:) +- **Update**: Added parameter "edges" with label "excluding" to aforementioned method" + ### 0.7.7 - **Fix**: Fix doubling separator line issue diff --git a/Sources/Extensions/UIKit/UIView/UIView+Layout.swift b/Sources/Extensions/UIKit/UIView/UIView+Layout.swift index 1736af93..a5da986f 100644 --- a/Sources/Extensions/UIKit/UIView/UIView+Layout.swift +++ b/Sources/Extensions/UIKit/UIView/UIView+Layout.swift @@ -55,6 +55,7 @@ public extension UIView { Place and fix view to parent view's center with insets - parameter insets: desired view insets, by default is zero + - parameter edges: edges to which no constraints are needed */ func pinToSuperview(wtihInsets insets: UIEdgeInsets = .zero, excluding edges: UIRectEdge = []) { guard let superview = superview else {