mirror of https://github.com/SnapKit/SnapKit
Add `topMargin` to constraint maker (#343)
This commit is contained in:
parent
180ff1477e
commit
39afda860e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue