Jelajahi Sumber

Missing property topMargin on ConstraintMakerExtendable (#393)

This pull request adds the missing property "topMargin" to ConstraintMakerExtendable class.
Jairo Tylera 8 tahun lalu
induk
melakukan
1448d71704
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  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