From 6aca61ac93b17e3813ae4f887273144d7753c3d3 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Sat, 6 Aug 2016 23:25:03 +1200 Subject: [PATCH] Add `center` to constraint maker --- Source/ConstraintMaker.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/ConstraintMaker.swift b/Source/ConstraintMaker.swift index 94f1556..cefa31f 100644 --- a/Source/ConstraintMaker.swift +++ b/Source/ConstraintMaker.swift @@ -124,6 +124,9 @@ public class ConstraintMaker { public var size: ConstraintMakerExtendable { return self.makeExtendableWithAttributes(.size) } + public var center: ConstraintMakerExtendable { + return self.makeExtendableWithAttributes(.center) + } @available(iOS 8.0, *) public var margins: ConstraintMakerExtendable {