Add platform check for additional constraints attributes.

This commit is contained in:
Suyeol Jeon 2014-11-09 22:39:14 +09:00
parent 50b365e1e2
commit b02b0910db
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,7 @@ internal struct ConstraintAttributes: RawOptionSetType, BooleanType {
if (self & ConstraintAttributes.Baseline) {
attrs.append(.Baseline)
}
#if os(ios)
if (self & ConstraintAttributes.FirstBaseline) {
attrs.append(.FirstBaseline)
}
@ -143,6 +144,7 @@ internal struct ConstraintAttributes: RawOptionSetType, BooleanType {
if (self & ConstraintAttributes.CenterYWithinMargins) {
attrs.append(.CenterYWithinMargins)
}
#endif
return attrs
}
}