From 1448d71704fbff4e87ef89b6098382736262d077 Mon Sep 17 00:00:00 2001 From: Jairo Tylera Date: Sat, 11 Feb 2017 10:31:59 +0100 Subject: [PATCH] Missing property topMargin on ConstraintMakerExtendable (#393) This pull request adds the missing property "topMargin" to ConstraintMakerExtendable class. --- Source/ConstraintMakerExtendable.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/ConstraintMakerExtendable.swift b/Source/ConstraintMakerExtendable.swift index 658c833..6a755b5 100644 --- a/Source/ConstraintMakerExtendable.swift +++ b/Source/ConstraintMakerExtendable.swift @@ -109,6 +109,12 @@ public class ConstraintMakerExtendable: ConstraintMakerRelatable { return self } + @available(iOS 8.0, *) + public var topMargin: ConstraintMakerExtendable { + self.description.attributes += .topMargin + return self + } + @available(iOS 8.0, *) public var bottomMargin: ConstraintMakerExtendable { self.description.attributes += .bottomMargin