浏览代码

Missing property topMargin on ConstraintMakerExtendable (#393)

This pull request adds the missing property "topMargin" to ConstraintMakerExtendable class.
Jairo Tylera 8 年之前
父节点
当前提交
1448d71704
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Source/ConstraintMakerExtendable.swift

+ 6 - 0
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