Comment added
This commit is contained in:
parent
934121690d
commit
e296f5ee77
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue