From 39afda860e1eec1a15ed91e9f87c50224d5d66c0 Mon Sep 17 00:00:00 2001 From: Andrey Ufimtsev Date: Mon, 3 Oct 2016 11:47:58 +0200 Subject: [PATCH] Add `topMargin` to constraint maker (#343) --- Source/ConstraintMaker.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/ConstraintMaker.swift b/Source/ConstraintMaker.swift index 73bc3cd..63c1be4 100644 --- a/Source/ConstraintMaker.swift +++ b/Source/ConstraintMaker.swift @@ -93,6 +93,11 @@ public class ConstraintMaker { return self.makeExtendableWithAttributes(.rightMargin) } + @available(iOS 8.0, *) + public var topMargin: ConstraintMakerExtendable { + return self.makeExtendableWithAttributes(.topMargin) + } + @available(iOS 8.0, *) public var bottomMargin: ConstraintMakerExtendable { return self.makeExtendableWithAttributes(.bottomMargin)