Comment added

This commit is contained in:
Alexey Gerasimov 2018-03-29 19:52:30 +03:00
parent 934121690d
commit e296f5ee77
1 changed files with 6 additions and 1 deletions

View File

@ -47,7 +47,12 @@ public extension UIView {
widthAnchor.constraint(equalToConstant: size.width).isActive = true
}
func setToCenter(wtih insets: UIEdgeInsets = .zero) {
/**
Place and fix view to parent view's center with insets
- parameter insets: desired view insets, by default is zero
*/
func setToCenter(wtihInsets insets: UIEdgeInsets = .zero) {
guard let superview = superview else {
return
}