mirror of https://github.com/SnapKit/SnapKit
Add `center` to constraint maker
This commit is contained in:
parent
1b712cde8c
commit
6aca61ac93
|
@ -124,6 +124,9 @@ public class ConstraintMaker {
|
||||||
public var size: ConstraintMakerExtendable {
|
public var size: ConstraintMakerExtendable {
|
||||||
return self.makeExtendableWithAttributes(.size)
|
return self.makeExtendableWithAttributes(.size)
|
||||||
}
|
}
|
||||||
|
public var center: ConstraintMakerExtendable {
|
||||||
|
return self.makeExtendableWithAttributes(.center)
|
||||||
|
}
|
||||||
|
|
||||||
@available(iOS 8.0, *)
|
@available(iOS 8.0, *)
|
||||||
public var margins: ConstraintMakerExtendable {
|
public var margins: ConstraintMakerExtendable {
|
||||||
|
|
Loading…
Reference in New Issue