@@ -26,7 +26,7 @@ import UIKit
26
26
27
27
extension UIView {
28
28
29
- public func fillSuperview( ) {
29
+ internal func fillSuperview( ) {
30
30
guard let superview = self . superview else {
31
31
return
32
32
}
@@ -41,7 +41,7 @@ extension UIView {
41
41
NSLayoutConstraint . activate ( constraints)
42
42
}
43
43
44
- public func centerInSuperview( ) {
44
+ internal func centerInSuperview( ) {
45
45
guard let superview = self . superview else {
46
46
return
47
47
}
@@ -53,7 +53,7 @@ extension UIView {
53
53
NSLayoutConstraint . activate ( constraints)
54
54
}
55
55
56
- public func constraint( equalTo size: CGSize ) {
56
+ internal func constraint( equalTo size: CGSize ) {
57
57
guard superview != nil else { return }
58
58
translatesAutoresizingMaskIntoConstraints = false
59
59
let constraints : [ NSLayoutConstraint ] = [
@@ -65,7 +65,7 @@ extension UIView {
65
65
}
66
66
67
67
@discardableResult
68
- public func addConstraints( _ top: NSLayoutYAxisAnchor ? = nil , left: NSLayoutXAxisAnchor ? = nil , bottom: NSLayoutYAxisAnchor ? = nil , right: NSLayoutXAxisAnchor ? = nil , topConstant: CGFloat = 0 , leftConstant: CGFloat = 0 , bottomConstant: CGFloat = 0 , rightConstant: CGFloat = 0 , widthConstant: CGFloat = 0 , heightConstant: CGFloat = 0 ) -> [ NSLayoutConstraint ] {
68
+ internal func addConstraints( _ top: NSLayoutYAxisAnchor ? = nil , left: NSLayoutXAxisAnchor ? = nil , bottom: NSLayoutYAxisAnchor ? = nil , right: NSLayoutXAxisAnchor ? = nil , topConstant: CGFloat = 0 , leftConstant: CGFloat = 0 , bottomConstant: CGFloat = 0 , rightConstant: CGFloat = 0 , widthConstant: CGFloat = 0 , heightConstant: CGFloat = 0 ) -> [ NSLayoutConstraint ] {
69
69
70
70
if self . superview == nil {
71
71
return [ ]
0 commit comments