change log + comments

This commit is contained in:
Madhas 2018-04-11 16:51:32 +03:00
parent 0c27f3b81d
commit fc591bba0c
2 changed files with 5 additions and 0 deletions

View File

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

View File

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