Add `topMargin` to constraint maker (#343)

This commit is contained in:
Andrey Ufimtsev 2016-10-03 11:47:58 +02:00 committed by Robert Payne
parent 180ff1477e
commit 39afda860e
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ public class ConstraintMaker {
return self.makeExtendableWithAttributes(.rightMargin) return self.makeExtendableWithAttributes(.rightMargin)
} }
@available(iOS 8.0, *)
public var topMargin: ConstraintMakerExtendable {
return self.makeExtendableWithAttributes(.topMargin)
}
@available(iOS 8.0, *) @available(iOS 8.0, *)
public var bottomMargin: ConstraintMakerExtendable { public var bottomMargin: ConstraintMakerExtendable {
return self.makeExtendableWithAttributes(.bottomMargin) return self.makeExtendableWithAttributes(.bottomMargin)